Browse Source

makepanda: Don't pass `-fno-semantic-interposition` for emscripten

rdb 2 years ago
parent
commit
c775fe9553
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -1408,7 +1408,7 @@ def CompileCxx(obj,src,opts):
                 if 'NOARCH:' + arch.upper() not in opts:
                     cmd += " -arch %s" % arch
 
-        elif 'clang' not in GetCXX().split('/')[-1]:
+        elif 'clang' not in GetCXX().split('/')[-1] and GetCXX() != 'em++':
             # Enable interprocedural optimizations in GCC.
             cmd += " -fno-semantic-interposition"