2021-07-12 17:41:37 +00:00
|
|
|
--- SConstruct~ 2021-07-12 11:55:10.366672469 -0500
|
|
|
|
+++ SConstruct 2021-07-12 11:57:10.358812423 -0500
|
|
|
|
@@ -46,15 +46,7 @@
|
2021-04-19 14:52:11 +00:00
|
|
|
# $ CXXFLAGS=-msse3 scons
|
|
|
|
# $ CXXFLAGS=-march=native scons
|
|
|
|
# or modify the `flags` variable:
|
2022-10-05 00:14:10 +00:00
|
|
|
-flags = ["-std=c++11", "-Wall", "-Wold-style-cast", "-fno-rtti"]
|
2021-04-19 14:52:11 +00:00
|
|
|
-if env["mode"] != "debug":
|
2022-10-05 00:14:10 +00:00
|
|
|
- flags += ["-Werror", "-O3", "-flto"]
|
2021-04-19 14:52:11 +00:00
|
|
|
- env.Append(LINKFLAGS = ["-O3", "-flto"])
|
|
|
|
-if env["mode"] == "debug":
|
|
|
|
- flags += ["-g"]
|
|
|
|
-elif env["mode"] == "profile":
|
|
|
|
- flags += ["-pg"]
|
|
|
|
- env.Append(LINKFLAGS = ["-pg"])
|
|
|
|
+flags = ["-std=c++11"]
|
|
|
|
env.Append(CCFLAGS = flags)
|
2021-07-12 17:41:37 +00:00
|
|
|
|
|
|
|
# Always use `ar` to create the symbol table, and don't use ranlib at all, since it fails to preserve
|