Added workround for clang static builds and enable them again, don't force -O1 on clang builds. [smf]

This commit is contained in:
smf- 2017-12-25 18:13:15 +00:00
parent 57aaf5d463
commit f789821121

View File

@ -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 {