Changeset 023e4b2


Ignore:
Timestamp:
May 29, 2017, 4:50:08 PM (2 years ago)
Author:
Martin Hermant <martin.hermant@gmail.com>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.