Skip to content

Commit 08b70e5

Browse files
committed
Accept EMCC_STRICT=somethingotherthanzero as true for EMCC_STRICT
1 parent 022c4db commit 08b70e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ def detect_fixed_language_mode(args):
923923
shared.Settings.SEPARATE_ASM = os.path.basename(asm_target)
924924

925925
if 'EMCC_STRICT' in os.environ:
926-
shared.Settings.STRICT = int(os.environ.get('EMCC_STRICT'))
926+
shared.Settings.STRICT = os.environ.get('EMCC_STRICT') != '0'
927927

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

0 commit comments

Comments
 (0)