Fix the DEBUG and PERF build targets.
This commit is contained in:
parent
6441ca6707
commit
3b0d7ca64c
@ -68,10 +68,10 @@ env.Append(CPPFLAGS = "-DBUILDTYPE=" + env["BUILDTYPE"])
|
|||||||
if env["BUILDTYPE"] == "DEBUG":
|
if env["BUILDTYPE"] == "DEBUG":
|
||||||
env.Append(CPPFLAGS = [ "-g", "-DDEBUG", "-Wall",
|
env.Append(CPPFLAGS = [ "-g", "-DDEBUG", "-Wall",
|
||||||
"-Wno-deprecated-declarations" ])
|
"-Wno-deprecated-declarations" ])
|
||||||
env.Append(LINKFLAGS = [ "-g", "-rdynamic" ])
|
env.Append(LINKFLAGS = [ "-g" ])
|
||||||
elif env["BUILDTYPE"] == "PERF":
|
elif env["BUILDTYPE"] == "PERF":
|
||||||
env.Append(CPPFLAGS = [ "-g", "-DNDEBUG", "-Wall", "-O2"])
|
env.Append(CPPFLAGS = [ "-g", "-DNDEBUG", "-Wall", "-O2"])
|
||||||
env.Append(LDFLAGS = [ "-g", "-rdynamic" ])
|
env.Append(LDFLAGS = [ "-g" ])
|
||||||
elif env["BUILDTYPE"] == "RELEASE":
|
elif env["BUILDTYPE"] == "RELEASE":
|
||||||
env.Append(CPPFLAGS = ["-DNDEBUG", "-Wall", "-O2"])
|
env.Append(CPPFLAGS = ["-DNDEBUG", "-Wall", "-O2"])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user