diff options
author | 2017-12-25 18:13:15 +0000 | |
---|---|---|
committer | 2017-12-26 11:11:50 +0000 | |
commit | f789821121889349b375dd9936a20a1de65ea0ce (patch) | |
tree | a11dbf1e475e7e0ba46282fc90e54756b362559a /scripts/genie.lua | |
parent | 57aaf5d46361f6a55b05a9f9ac0919e3bbf21de4 (diff) |
Added workround for clang static builds and enable them again, don't force -O1 on clang builds. [smf]
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 22d7d05f69c..97eff92bc7a 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -847,7 +847,7 @@ end configuration { "mingw-clang" } buildoptions { - "-O1", -- without this executable crash often + "-Xclang -flto-visibility-public-std", -- workround for __imp___ link errors } configuration { } @@ -1133,14 +1133,8 @@ configuration { "osx* or xcode4" } } configuration { "mingw*" } - local version = str_to_version(_OPTIONS["gcc_version"]) - if not (_OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang")) or version < 40000 - then - linkoptions { - "-static", - } - end linkoptions { + "-static", "-Wl,--start-group", } links { |