calref / cboe

Classic Blades of Exile
http://spiderwebforums.ipbhost.com/index.php?/forum/12-blades-of-exile/
Other
167 stars 41 forks source link

-o0 in CCFLAGS breaking scons debug build on linux #343

Closed NQNStudios closed 1 month ago

NQNStudios commented 1 year ago

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.

https://github.com/calref/cboe/blob/1bc7524ec218782ee469b2cb853f570a3f4eedcc/SConstruct#L50

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