From 7b956d3c04a57e6fbef91111c64521a78846e38e Mon Sep 17 00:00:00 2001 From: DrChat Date: Wed, 20 Dec 2017 15:59:50 -0600 Subject: [PATCH] Disable LTO on clang --- premake5.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/premake5.lua b/premake5.lua index 9d5c43840..9d98eadee 100644 --- a/premake5.lua +++ b/premake5.lua @@ -87,7 +87,8 @@ filter("platforms:Linux") toolset("clang") buildoptions({ -- "-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({ "pthread", @@ -98,7 +99,6 @@ filter("platforms:Linux") "xcb", "X11-xcb", "GL", - "GLEW", "vulkan", "c++", "c++abi"