Skip to content

Commit

Permalink
C++17 for new embindcefv8
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoprog committed Aug 4, 2017
1 parent 660443e commit 48f4456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build/premake4.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
if os.is("linux") then
local getcxxflags = premake.gcc.getcxxflags;
function premake.gcc.getcxxflags(cfg)
local cxxflags = { Cxx11 = "-std=c++14" }
local cxxflags = { Cxx17 = "-std=c++1z" }
local r = getcxxflags(cfg);
local r2 = table.translate(cfg.flags, cxxflags);
for _,v in ipairs(r2) do table.insert(r, v) end
return r;
end
table.insert(premake.fields.flags.allowed, "Cxx11");
table.insert(premake.fields.flags.allowed, "Cxx17");
end

solution "gengine"
Expand Down Expand Up @@ -48,7 +48,7 @@ solution "gengine"

if os.is("linux") then
defines { "_LINUX" }
flags { "Cxx11" }
flags { "Cxx17" }
buildoptions { "-Wno-error=unused-variable -Wno-error=unused-parameter -Wno-strict-aliasing -Wno-sign-compare" }
linkoptions { "-Wl,-rpath=../deps/linux/lib64/"}
elseif os.is("windows") then
Expand Down
2 changes: 1 addition & 1 deletion deps/common/libembindcefv8

0 comments on commit 48f4456

Please sign in to comment.