Disable LTO on clang

This commit is contained in:
DrChat 2017-12-20 15:59:50 -06:00
parent a27c761a52
commit 7b956d3c04
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,8 @@ filter("platforms:Linux")
toolset("clang") toolset("clang")
buildoptions({ buildoptions({
-- "-mlzcnt", -- (don't) Assume lzcnt is supported. -- "-mlzcnt", -- (don't) Assume lzcnt is supported.
"`pkg-config --cflags gtk+-x11-3.0`" "`pkg-config --cflags gtk+-x11-3.0`",
"-fno-lto", -- Premake doesn't support LTO on clang
}) })
links({ links({
"pthread", "pthread",
@ -98,7 +99,6 @@ filter("platforms:Linux")
"xcb", "xcb",
"X11-xcb", "X11-xcb",
"GL", "GL",
"GLEW",
"vulkan", "vulkan",
"c++", "c++",
"c++abi" "c++abi"