From 23e807dea3a68ead712cb2eab54fba08e545872b Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Tue, 27 Feb 2024 14:42:41 -0800 Subject: [PATCH] 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. --- auto/modules/wasm-wasi-component | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/modules/wasm-wasi-component b/auto/modules/wasm-wasi-component index bfb6ffcb..6c8258d7 100644 --- a/auto/modules/wasm-wasi-component +++ b/auto/modules/wasm-wasi-component @@ -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'"