From 660f8d7ba6514451bf952a438812af40df6dcaa2 Mon Sep 17 00:00:00 2001 From: DrChat Date: Tue, 19 Dec 2017 19:29:30 -0600 Subject: [PATCH] Clang building on linux --- premake5.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/premake5.lua b/premake5.lua index 4d4b3779f..9d5c43840 100644 --- a/premake5.lua +++ b/premake5.lua @@ -93,6 +93,7 @@ filter("platforms:Linux") "pthread", "dl", "lz4", + "rt", "X11", "xcb", "X11-xcb", @@ -105,9 +106,6 @@ filter("platforms:Linux") linkoptions({ "`pkg-config --libs gtk+-3.0`", }) - disablewarnings({ - "deprecated-register" - }) filter({"platforms:Linux", "kind:*App"}) linkgroups("On") @@ -122,10 +120,13 @@ filter({"platforms:Linux", "language:C++", "toolset:gcc"}) filter({"platforms:Linux", "language:C++", "toolset:clang"}) buildoptions({ "-std=c++14", - "-stdlib=libc++", + "-stdlib=libstdc++", }) links({ }) + disablewarnings({ + "deprecated-register" + }) filter("platforms:Windows") system("windows")