blob: 6790f7de647f6fa589b30a58b75b3311a3fbaff0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- a/SConstruct
+++ b/SConstruct
@@ -53,10 +53,2 @@
flags = ["-std=c++11", "-Wall", "-Wold-style-cast", "-fno-rtti"]
-if env["mode"] != "debug":
- flags += ["-Werror", "-O3", "-flto"]
- env.Append(LINKFLAGS = ["-O3", "-flto"])
-if env["mode"] == "debug":
- flags += ["-g"]
-elif env["mode"] == "profile":
- flags += ["-pg"]
- env.Append(LINKFLAGS = ["-pg"])
env.Append(CCFLAGS = flags)
|