Browse Source

Enable Bullet DEBUG on debug builds.

Marcel Admiraal 5 years ago
parent
commit
ff90327146
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/bullet/SCsub

+ 2 - 2
modules/bullet/SCsub

@@ -200,8 +200,8 @@ if env["builtin_bullet"]:
         env_bullet.Append(CPPFLAGS=["-isystem", Dir(thirdparty_dir).path])
         env_bullet.Append(CPPFLAGS=["-isystem", Dir(thirdparty_dir).path])
     else:
     else:
         env_bullet.Prepend(CPPPATH=[thirdparty_dir])
         env_bullet.Prepend(CPPPATH=[thirdparty_dir])
-    # if env['target'] == "debug" or env['target'] == "release_debug":
-    #     env_bullet.Append(CPPDEFINES=['BT_DEBUG'])
+    if env["target"] == "debug" or env["target"] == "release_debug":
+        env_bullet.Append(CPPDEFINES=["DEBUG"])
 
 
     env_thirdparty = env_bullet.Clone()
     env_thirdparty = env_bullet.Clone()
     env_thirdparty.disable_warnings()
     env_thirdparty.disable_warnings()