Skip to content
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

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

AndreaCatania
Copy link
Contributor

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.

@akien-mga
Copy link
Member

We don't need to add the CMakeLists.txt and premake files.

@akien-mga
Copy link
Member

akien-mga commented Jun 3, 2019

It looks like there are -Wreorder warnings still raised by Bullet headers.

@AndreaCatania
Copy link
Contributor Author

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.

@akien-mga
Copy link
Member

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'])

@akien-mga
Copy link
Member

I'll force push an update to this PR with this -isystem change, the current upstream master commit and unnecessary files removed.

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.
@akien-mga
Copy link
Member

Done, let's see if it passes CI now. At least locally it doesn't trigger errors for now with werror=yes warnings=extra and GCC 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants