ref: b075ad88d53a7931ca4205e66e809a12b2666aaf
parent: 023e4b229d57777eebf7abd9adb4192407e84698
author: Martin Hermant <martin.hermant@gmail.com>
date: Mon May 29 06:59:12 EDT 2017
gen_external.py : force c compiler (emcc defaults to c++)
--- a/python/lib/gen_external.py
+++ b/python/lib/gen_external.py
@@ -72,7 +72,7 @@
print("Warning: could not guess preprocessor, using env's CC")
cpp_cmd = os.environ.get('CC', 'cc').split()
cpp_cmd += ['-E']
-
+ cpp_cmd += ['-x', 'c'] # force C language (emcc defaults to c++)
return cpp_cmd
def get_cpp_objects(header=header, usedouble=False):