[HTML5] Fix "initial_memory" build option parsing
This commit is contained in:
parent
2ea7592ca1
commit
abb8d8e8ca
@ -51,8 +51,11 @@ def get_flags():
|
||||
|
||||
def configure(env):
|
||||
if not isinstance(env["initial_memory"], int):
|
||||
print("Initial memory must be a valid integer")
|
||||
sys.exit(255)
|
||||
try:
|
||||
env["initial_memory"] = int(env["initial_memory"])
|
||||
except:
|
||||
print("Initial memory must be a valid integer")
|
||||
sys.exit(255)
|
||||
|
||||
## Build type
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user