diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2012-05-15 20:43:11 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2012-06-19 19:16:12 +0300 |
commit | b20f9e0f4508c4b64cbdf8f9efc8642e7b3780f9 (patch) | |
tree | e1e0d2adea35cbbc23caf038405e443f531f623f | |
parent | df16a752c4cc580891aecdd4387c11e1b1f7443f (diff) |
Don't pass the -nostdinc++ parameter to clang from emcc, since it spams the line "clang++: warning: argument unused during compilation: '-nostdinc++'" for each built .cpp file.
-rw-r--r-- | tools/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index f431318b..84924253 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -197,7 +197,7 @@ USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK') if USE_EMSDK: # Disable system C and C++ include directories, and add our own (using -idirafter so they are last, like system dirs, which # allows projects to override them) - EMSDK_OPTS = ['-nostdinc', '-nostdinc++', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdinc++', '-Xclang', '-nostdsysteminc', + EMSDK_OPTS = ['-nostdinc', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdinc++', '-Xclang', '-nostdsysteminc', '-Xclang', '-isystem' + path_from_root('system', 'include'), '-Xclang', '-isystem' + path_from_root('system', 'include', 'emscripten'), '-Xclang', '-isystem' + path_from_root('system', 'include', 'bsd'), # posix stuff |