diff options
| author | sephiroth99 <sephiroth99@gmail.com> | 2015-09-22 01:08:19 -0400 |
|---|---|---|
| committer | Ben Vanik <ben.vanik@gmail.com> | 2015-09-22 07:41:37 -0700 |
| commit | 9961fbde2ecff2ab823c2d2e9382c4abbdfc89d3 (patch) | |
| tree | 12c5af73b8452f5a167eaeffcdffe18814eb0c76 /premake5.lua | |
| parent | e1d569dd7c0e162d3a22843892cdb7d85f17f1df (diff) | |
Set std=c++14 only when compiling C++ projects.
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index 7f96391c3..02728f550 100644 --- a/premake5.lua +++ b/premake5.lua @@ -64,10 +64,14 @@ filter("platforms:Linux") system("linux") toolset("clang") buildoptions({ - "-std=c++14", "-mlzcnt", -- Assume lzcnt supported. }) +filter({"platforms:Linux", "language:C++"}) + buildoptions({ + "-std=c++14", + }) + filter("platforms:Windows") system("windows") toolset("msc") |
