-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Bullet version to the actual bullet master commit #29418
Conversation
We don't need to add the CMakeLists.txt and premake files. |
It looks like there are -Wreorder warnings still raised by Bullet headers. |
I think that these flags, have to be disabled in thirdparty dir. However remove the unwanted file is possible, but is better to not do it, because the idea is to keep the bullet update easy like a drag and drop. |
Try this maybe? diff --git a/modules/bullet/SCsub b/modules/bullet/SCsub
index 16d694c23..2fe7a1b4c 100644
--- a/modules/bullet/SCsub
+++ b/modules/bullet/SCsub
@@ -186,7 +186,11 @@ if env['builtin_bullet']:
thirdparty_sources = [thirdparty_dir + file for file in bullet2_src]
- env_bullet.Prepend(CPPPATH=[thirdparty_dir])
+ # Treat Bullet headers as system headers to avoid raising warnings. Not supported on MSVC.
+ if not env.msvc:
+ env_bullet.Append(CPPFLAGS=['-isystem', Dir(thirdparty_dir).path])
+ else:
+ env_bullet.Prepend(CPPPATH=[thirdparty_dir])
# if env['target'] == "debug" or env['target'] == "release_debug":
# env_bullet.Append(CPPFLAGS=['-DBT_DEBUG']) |
I'll force push an update to this PR with this |
This updates our local copy to commit 5ec8339b6fc491e3f09a34a4516e82787f053fcc. We need a recent master commit for some new features that we use in Godot (see godotengine#25543 and godotengine#28909). To avoid warnings generated by Bullet headers included in our own module, we include those headers with -isystem on GCC and Clang. Fixes godotengine#29503.
Done, let's see if it passes CI now. At least locally it doesn't trigger errors for now with |
This PR updates the Bullet library to the last master branch commit 500264ca239d3fdf69162c75c5b40ee04baae458.
@akien-mga this PR is not yet merged, bulletphysics/bullet3#2264, I'll do another PR once this is merged so in the meantime you can merge this one.