Skip to content

Commit 5ac5707

Browse files
committed
hybrid build opts fix
1 parent 181ac12 commit 5ac5707

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

emsdk-cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ def arglist(*argv):
4949

5050
# -Wwarn-absolute-paths
5151
# --valid-abspath ${SDKROOT}
52-
# COMMON="-Wno-unsupported-floating-point-opt"
52+
# COMMON=
53+
# -Wno-unsupported-floating-point-opt
54+
# -Wno-limited-postlink-optimizations
5355

5456
COMMON = arglist(
5557
"""
56-
-Wno-limited-postlink-optimizations
5758
-Wno-unused-command-line-argument
5859
-Wno-unreachable-code-fallthrough
5960
-Wno-unused-function
@@ -171,6 +172,10 @@ for argc, arg in enumerate(sys.argv):
171172
if arg == '-static':
172173
STATIC = True
173174

175+
if arg.startswith("-sENVIRONMENT"):
176+
SIZEOPT = False
177+
USE_RAWFS = False
178+
174179
if arg == "-sENVIRONMENT=web":
175180
EXE = False
176181
HTML = True

0 commit comments

Comments
 (0)