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
77 print("Warning: could not guess preprocessor, using env's CC")77 print("Warning: could not guess preprocessor, using env's CC")
78 cpp_cmd = os.environ.get('CC', 'cc').split()78 cpp_cmd = os.environ.get('CC', 'cc').split()
79 cpp_cmd += ['-E']79 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
81 return cpp_cmd82 return cpp_cmd
82 83
83 84

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