Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -77,7 +77,8 @@ def get_preprocessor(): · 76 unmodified lines | ||
| 77 | 77 | print("Warning: could not guess preprocessor, using env's CC") |
| 78 | 78 | cpp_cmd = os.environ.get('CC', 'cc').split() |
| 79 | 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 | 82 | return cpp_cmd |
| 82 | 83 | |
| 83 | 84 | |