History

python/lib/gen_external.py: pass '-x c' to emcc only

Paul Brossier committed 8 years ago

Commit dbdb48a1 parent 8428a521 file · +2 −1Browse files

Showing the changes to python/lib (1 of 1 file). Show all

Unified · Split

python/lib/gen_external.py+2−1
@@ -77,7 +77,8 @@ def get_preprocessor(): · 76 unmodified lines
7777 print("Warning: could not guess preprocessor, using env's CC")
7878 cpp_cmd = os.environ.get('CC', 'cc').split()
7979 cpp_cmd += ['-E']
80− cpp_cmd += ['-x', 'c'] # force C language (emcc defaults to c++)
80+ if 'emcc' in cpp_cmd:
81+ cpp_cmd += ['-x', 'c'] # emcc defaults to c++, force C language
8182 return cpp_cmd
8283
8384

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t