Hi,
the patch introduced in r252 causes OpenSG 2 to build both debug and
optimized variants with -g -O2 instead of one with -g and the other with
-02. Reverting r252 restores the correct behavior.
The problem is quite subtle and only arises when using the
VariantsHelper and not using the default_*_level options on the command
line. I believe the changes of r252 should be reverted (patch attached)
and the problem reported by the OP can be fixed in his code by calling
env_bldr.enabledDebug() - like VariantsHelper does. Or maybe I got it
all wrong and a different fix is required ?
Comments ?
Thanks,
Carsten
Index: EnvironmentBuilder.py
===================================================================
--- EnvironmentBuilder.py (revision 252)
+++ EnvironmentBuilder.py (working copy)
@@ -231,9 +231,9 @@
def readOptions(self, optEnv):
""" Read the processed options from the given environment. """
- self.debugLevel = optEnv["default_debug_level"]
- self.optLevel = optEnv["default_opt_level"]
- self.warningLevel = optEnv["default_warning_level"]
+ self.defaultDebugLevel = optEnv["default_debug_level"]
+ self.defaultOptLevel = optEnv["default_opt_level"]
+ self.defaultWarningLevel = optEnv["default_warning_level"]
if GetPlatform() == "darwin":
self.darwinUniversalEnabled = optEnv["darwin_universal"]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users