Skip to content

Commit

Permalink
Accept EMCC_STRICT=somethingotherthanzero as true for EMCC_STRICT
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Dec 7, 2016
1 parent 022c4db commit 08b70e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def detect_fixed_language_mode(args):
shared.Settings.SEPARATE_ASM = os.path.basename(asm_target)

if 'EMCC_STRICT' in os.environ:
shared.Settings.STRICT = int(os.environ.get('EMCC_STRICT'))
shared.Settings.STRICT = os.environ.get('EMCC_STRICT') != '0'

STRICT = ([None] + filter(lambda x: x.startswith('STRICT='), settings_changes))[-1]
if STRICT:
Expand Down

0 comments on commit 08b70e5

Please sign in to comment.