Skip to content

Commit

Permalink
Wasm-wc: use more common uname switch to get operating system name
Browse files Browse the repository at this point in the history
-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.
  • Loading branch information
thresheek committed Feb 28, 2024
1 parent e67d743 commit 23e807d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto/modules/wasm-wasi-component
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 23e807d

Please sign in to comment.