Skip to content

Commit 816bf03

Browse files
committed
Fix building with clang
1 parent 27b6469 commit 816bf03

File tree

1 file changed

+3
-0
lines changed
  • modules/bullet_physics

1 file changed

+3
-0
lines changed

modules/bullet_physics/SCsub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
Import("env")
44
Import("env_modules")
5+
import methods
56

67
env_bullet = env_modules.Clone()
78

89
thirdparty_obj = []
910

1011
env.Append(builtin_bullet=True)
12+
if methods.using_clang(env_bullet) or methods.using_emcc(env_bullet):
13+
env_bullet.Append(CXXFLAGS=["-frelaxed-template-template-args"])
1114

1215
# Add bullet header, no need to compile Bullet third party, because it's
1316
# already done by the godot bullet module.

0 commit comments

Comments
 (0)