Add macOS support to simple C++ demo

This commit is contained in:
Aaron Franke
2021-07-08 21:06:01 -04:00
parent aa20e79ab3
commit eb52bc7390
2 changed files with 3 additions and 2 deletions

View File

@@ -49,10 +49,10 @@ if env["use_llvm"] == "yes":
# put stuff that is the same for all first, saves duplication
if env["platform"] == "osx":
if env["target"] in ("debug", "d"):
env.Append(CCFLAGS=["-g", "-O2", "-arch", "x86_64"])
env.Append(CCFLAGS=["-g", "-O2", "-arch", "x86_64", "-std=c++14"])
env.Append(LINKFLAGS=["-arch", "x86_64"])
else:
env.Append(CCFLAGS=["-g", "-O3", "-arch", "x86_64"])
env.Append(CCFLAGS=["-g", "-O3", "-arch", "x86_64", "-std=c++14"])
env.Append(LINKFLAGS=["-arch", "x86_64"])
elif env["platform"] == "linux":
if env["target"] in ("debug", "d"):