-o0 in CCFLAGS breaking scons debug build on linux
NQNStudios opened this issue · comments
Nat Quayle Nelson commented
scons debug=true
on Linux isn't working because it adds -g -o0
to the compiler flags. -o0
should be interpreted by g++ and clang as disabling optimization but it's actually being processed as setting the output file to 0. So every file is getting compiled to cboe/0
and of course that's no good.
Line 50 in 1bc7524
Changing the flag here to -O0
(capital O) fixes it for me.