calref / cboe

Classic Blades of Exile

Home Page:http://spiderwebforums.ipbhost.com/index.php?/forum/12-blades-of-exile/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-o0 in CCFLAGS breaking scons debug build on linux

NQNStudios opened this issue · comments

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.

env.Append(CCFLAGS=['-g','-o0'])

Changing the flag here to -O0 (capital O) fixes it for me.