mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Added workround for clang static builds and enable them again, don't force -O1 on clang builds. [smf]
This commit is contained in:
parent
57aaf5d463
commit
f789821121
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user