Changeset 023e4b2 for wscript


Ignore:
Timestamp:
May 29, 2017, 4:50:08 PM (8 years ago)
Author:
Martin Hermant <martin.hermant@gmail.com>
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:
b075ad8
Parents:
195ecf2b
Message:

wscript :
use .min.js extension for release build
add assersions in debug build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r195ecf2b r023e4b2  
    229229        import os.path
    230230        ctx.env.CFLAGS += [ '-I' + os.path.join(os.environ['EMSCRIPTEN'], 'system', 'include') ]
     231       
     232        if ctx.options.build_type == "debug":
     233            ctx.env.cshlib_PATTERN = '%s.js'
     234            ctx.env.LINKFLAGS_cshlib += ['-s','ASSERTIONS=1']
     235        else:
     236            ctx.env.LINKFLAGS += ['-Oz']
     237            ctx.env.cshlib_PATTERN = '%s.min.js'
     238       
    231239        ctx.env.cprogram_PATTERN = "%s.js"
    232240        if (ctx.options.enable_atlas != True):
Note: See TracChangeset for help on using the changeset viewer.