16 Nov
2013
16 Nov
'13
8:34 a.m.
On Sat, 16 Nov 2013 11:16:48 -0500
Donald Stufft
Personally I think that none of the -O* should be removing asserts. It feels like a foot gun to me. I’ve seen more than one codebase that would be completely broken under -O* because they used asserts without even knowing -O* existed.
Originally it was probably done so as to mimick C, where compiling in optimized mode will indeed disable any assert()s in the code. Regards Antoine.