shithub: aubio

Download patch

ref: dbdb48a8e680500a2666908bb971daeca4beac03
parent: 8428a52df2a6293bda52ca285c93e582f63d75b2
author: Paul Brossier <piem@piem.org>
date: Tue Sep 18 19:04:41 EDT 2018

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

--- a/python/lib/gen_external.py
+++ b/python/lib/gen_external.py
@@ -77,7 +77,8 @@
         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++)
+    if 'emcc' in cpp_cmd:
+        cpp_cmd += ['-x', 'c'] # emcc defaults to c++, force C language
     return cpp_cmd