Skip to content

Commit

Permalink
hybrid build opts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Dec 22, 2024
1 parent 181ac12 commit 5ac5707
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions emsdk-cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ def arglist(*argv):

# -Wwarn-absolute-paths
# --valid-abspath ${SDKROOT}
# COMMON="-Wno-unsupported-floating-point-opt"
# COMMON=
# -Wno-unsupported-floating-point-opt
# -Wno-limited-postlink-optimizations

COMMON = arglist(
"""
-Wno-limited-postlink-optimizations
-Wno-unused-command-line-argument
-Wno-unreachable-code-fallthrough
-Wno-unused-function
Expand Down Expand Up @@ -171,6 +172,10 @@ for argc, arg in enumerate(sys.argv):
if arg == '-static':
STATIC = True

if arg.startswith("-sENVIRONMENT"):
SIZEOPT = False
USE_RAWFS = False

if arg == "-sENVIRONMENT=web":
EXE = False
HTML = True
Expand Down

0 comments on commit 5ac5707

Please sign in to comment.