Wasm-wc: use more common uname switch to get operating system name

-o is not available on macOS 12.7 at least, and it's what homebrew seems
to support still.

Also, the proposed switch seems to be used already in the codebase.
This commit is contained in:
Konstantin Pavlov 2024-02-27 14:42:41 -08:00 committed by Konstantin Pavlov
parent e67d743328
commit 23e807dea3

View file

@ -82,7 +82,7 @@ fi
$echo " + $NXT_WCM_MODULE module: $NXT_WCM_MOD_NAME"
NXT_OS=$(uname -o)
NXT_OS=$(uname -s)
if [ $NXT_OS = "Darwin" ]; then
NXT_CARGO_CMD="cargo rustc --release --manifest-path src/wasm-wasi-component/Cargo.toml -- --emit link=target/release/libwasm_wasi_component.so -C link-args='-undefined dynamic_lookup'"