Create a gist now

Instantly share code, notes, and snippets.

@rockyjs /wscript.py Secret
Created Feb 4, 2016

Rocky.JS waf+emscripten configuration
def configure(conf):
conf.find_program('emcc', errmsg='emscripten is not installed')
conf.find_program('em-config', var='EM-CONFIG')
conf.env.EMSCRIPTEN_ROOT =
conf.cmd_and_log(['em-config', 'EMSCRIPTEN_ROOT']).rstrip()
conf.env.CC = 'emcc'
conf.env.LINK_CC = 'emcc'
conf.env.AR = 'emar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment