Browse Source

important to default -OO for optimized builds

David Rose 16 years ago
parent
commit
b12fbd0724
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/p3d/Sources.pp

+ 3 - 0
direct/src/p3d/Sources.pp

@@ -26,6 +26,9 @@
   #if $[USE_DEBUG_PYTHON]
     #define python $[PYTHON_DEBUG_COMMAND]
   #endif
+  #if $[>= $[OPTIMIZE], 4]
+    #define python $[python] -OO
+  #endif
 
   #foreach scriptname $[BUILD_P3D_SCRIPTS]
     #if $[eq $[PLATFORM],Win32]