Skip to content

Commit

Permalink
-s ERROR_ON_UNDEFINED_SYMBOLS=1 should be the default value, so set i…
Browse files Browse the repository at this point in the history
…t in strict mode.
  • Loading branch information
juj committed Dec 7, 2016
1 parent 6a148a2 commit 8e3bf5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,11 @@ def load(self, args=[]):
settings = re.sub(r'var ([\w\d]+)', r'self.attrs["\1"]', settings)
exec settings

# Apply default values for settings that are configured from environment variables.
if os.environ.get('EMSCRIPTEN_STRICT') and int(os.environ.get('EMSCRIPTEN_STRICT')) != 0:
# The default value -s ERROR_ON_UNDEFINED_SYMBOLS=0 is deprecated. Use the default value 1 in strict mode.
self.attrs['ERROR_ON_UNDEFINED_SYMBOLS'] = 1

# Apply additional settings. First -O, then -s
for i in range(len(args)):
if args[i].startswith('-O'):
Expand Down

0 comments on commit 8e3bf5b

Please sign in to comment.