From b075ad88d53a7931ca4205e66e809a12b2666aaf Mon Sep 17 00:00:00 2001 From: Martin Hermant Date: Mon, 29 May 2017 10:59:12 -0400 Subject: [PATCH] gen_external.py : force c compiler (emcc defaults to c++) --- python/lib/gen_external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lib/gen_external.py b/python/lib/gen_external.py index c1c69bd7..702b6fda 100644 --- a/python/lib/gen_external.py +++ b/python/lib/gen_external.py @@ -72,7 +72,7 @@ def get_preprocessor(): 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): -- 2.11.0