From 5ac5707e172d3eeb5265f6c364db88424644377d Mon Sep 17 00:00:00 2001 From: pmp-p Date: Sun, 22 Dec 2024 12:12:46 +0100 Subject: [PATCH] hybrid build opts fix --- emsdk-cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emsdk-cc b/emsdk-cc index b54dafb..5f6274f 100644 --- a/emsdk-cc +++ b/emsdk-cc @@ -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 @@ -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