summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2017-12-25 18:13:15 +0000
committer smf- <smf-@users.noreply.github.com>2017-12-26 11:11:50 +0000
commitf789821121889349b375dd9936a20a1de65ea0ce (patch)
treea11dbf1e475e7e0ba46282fc90e54756b362559a /scripts/genie.lua
parent57aaf5d46361f6a55b05a9f9ac0919e3bbf21de4 (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.lua10
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 {