Skip to content

Commit

Permalink
3.1.72pre
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Nov 22, 2024
1 parent ff66697 commit 17c90c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions emsdk-cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ WASM_EXTRA = env("WASM_EXTRA", "") + " " + env("WASM_OPTS", "")
# the only sane default for now
COPTS = env("COPTS", "-O2 -g3")

SIZEOPT = '-Os' in COPTS

MAIN_MODULE = LINKING = STATIC = False

EXE = False
Expand Down Expand Up @@ -366,7 +368,8 @@ else:
except Exception as e:
dbg("ERROR: 312", e)

final.append("-sENVIRONMENT=node")
if SIZEOPT:
final.append("-sENVIRONMENT=node")

# error: explicitly setting EXIT_RUNTIME not compatible with STANDALONE_WASM.
# EXIT_RUNTIME will always be True for programs (with a main function) and False for reactors (not main function).
Expand All @@ -378,7 +381,7 @@ else:

__import__("atexit").register(make_exe)
elif HTML:
if "-sENVIRONMENT=web" not in out:
if SIZEOPT and ("-sENVIRONMENT=web" not in out):
final.append("-sENVIRONMENT=web")

# maybe not pass all WASM opts when -c + -o but always PIC and opt level
Expand Down
4 changes: 2 additions & 2 deletions python-wasi-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ END
echo "keeping installed wasmtime and wasi binaries"
else
#wget https://github.com/bytecodealliance/wasmtime/releases/download/v22.0.0/wasmtime-v22.0.0-x86_64-linux.tar.xz

# wget https://github.com/bytecodealliance/wasmtime/releases/download/v26.0.1/wasmtime-v26.0.1-$(arch)-$(PLATFORM).tar.xz \
# TODO: window only has a zip archive, better use wasmtime-py instead.

wget https://github.com/bytecodealliance/wasmtime/releases/download/v26.0.1/wasmtime-v26.0.1-$(arch)-$(PLATFORM).tar.xz \
wget https://github.com/bytecodealliance/wasmtime/releases/download/v27.0.0/wasmtime-v27.0.0-$(arch)-$(PLATFORM).tar.xz \
-O-|xzcat|tar xfv -
mv -vf $(find wasmtime*|grep /wasmtime$) ${SDKROOT}/devices/$(arch)/usr/bin
fi
Expand Down
4 changes: 2 additions & 2 deletions python-wasm-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ END
echo "keeping installed wasmtime and wasi binaries"
else
#wget https://github.com/bytecodealliance/wasmtime/releases/download/v22.0.0/wasmtime-v22.0.0-x86_64-linux.tar.xz

# wget https://github.com/bytecodealliance/wasmtime/releases/download/v26.0.1/wasmtime-v26.0.1-$(arch)-$(PLATFORM).tar.xz \
# TODO: window only has a zip archive, better use wasmtime-py instead.

wget https://github.com/bytecodealliance/wasmtime/releases/download/v26.0.1/wasmtime-v26.0.1-$(arch)-$(PLATFORM).tar.xz \
wget https://github.com/bytecodealliance/wasmtime/releases/download/v27.0.0/wasmtime-v27.0.0-$(arch)-$(PLATFORM).tar.xz \
-O-|xzcat|tar xfv -
mv -vf $(find wasmtime*|grep /wasmtime$) ${SDKROOT}/devices/$(arch)/usr/bin
fi
Expand Down
1 change: 1 addition & 0 deletions wasisdk/hotfix/grp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//

0 comments on commit 17c90c5

Please sign in to comment.