Changeset 1539d4b for wscript


Ignore:
Timestamp:
May 29, 2017, 4:44:29 PM (3 years ago)
Author:
Martin Hermant <martin.hermant@gmail.com>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
195ecf2b
Parents:
fc5e189
Message:

wscript : use -Oz when building release with emscripten

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rfc5e189 r1539d4b  
    142142            ctx.env.prepend_value('CFLAGS', ['-O0'])
    143143        else:
     144            if target_platform == 'emscripten':
     145                # -Oz for small js file generation
     146                ctx.env.prepend_value('CFLAGS', ['-Oz'])
     147            else:
    144148            # default to -O2 in release mode
    145149            ctx.env.prepend_value('CFLAGS', ['-O2'])
Note: See TracChangeset for help on using the changeset viewer.