From b45d697d28cc06e9f567b9a2b30eb3f36ee2e58d Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Fri, 10 Apr 2020 09:19:51 -0700 Subject: [PATCH] always use python release version (not debug) on Windows, similar hack as pybind11 --- examples/pybullet/pybullet.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index d3b40dcee..d6beded74 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -30,9 +30,18 @@ #if defined(__APPLE__) && (!defined(B3_NO_PYTHON_FRAMEWORK)) #include #else +#ifdef _WIN32 + #ifdef _DEBUG + #define BT_REMOVED_DEBUG + //always use the release build of Python + #undef _DEBUG + #endif //_DEBUG +#endif #include #endif - +#ifdef BT_REMOVED_DEBUG + #define _DEBUG +#endif #include "../Importers/ImportURDFDemo/urdfStringSplit.h" #ifdef B3_DUMP_PYTHON_VERSION