Changeset a6ba5d9f for wscript


Ignore:
Timestamp:
Dec 25, 2016, 1:24:41 AM (8 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, sampler, yinfft+
Children:
e3b77e8
Parents:
c04346d
Message:

wscript: prepend defaults to honor user cflags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rc04346d ra6ba5d9f  
    138138
    139139    if ctx.env.CC_NAME != 'msvc':
    140         # enable debug symbols and configure warnings
    141         ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
    142140        if ctx.options.build_type == "debug":
    143141            # no optimization in debug mode
    144             ctx.env.CFLAGS += ['-O0']
     142            ctx.env.prepend_value('CFLAGS', ['-O0'])
     143        else:
     144            # default to -O2 in release mode
     145            ctx.env.prepend_value('CFLAGS', ['-O2'])
     146        # enable debug symbols and configure warnings
     147        ctx.env.prepend_value('CFLAGS', ['-g', '-Wall', '-Wextra'])
    145148    else:
    146149        # enable debug symbols
Note: See TracChangeset for help on using the changeset viewer.