Changeset dbdb48a


Ignore:
Timestamp:
Sep 18, 2018, 11:04:41 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
917adb0
Parents:
8428a52
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    r8428a52 rdbdb48a  
    7878        cpp_cmd = os.environ.get('CC', 'cc').split()
    7979        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
    8182    return cpp_cmd
    8283
Note: See TracChangeset for help on using the changeset viewer.