diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2024-02-27 14:42:41 -0800 |
---|---|---|
committer | Konstantin Pavlov <pavlov.konstantin@gmail.com> | 2024-02-27 16:44:42 -0800 |
commit | 23e807dea3a68ead712cb2eab54fba08e545872b (patch) | |
tree | 4d5e88df466d2dd2d839dfcf56a007a23041dc71 | |
parent | e67d7433282c367df6b1599858650d8261b6e080 (diff) | |
download | unit-23e807dea3a68ead712cb2eab54fba08e545872b.tar.gz unit-23e807dea3a68ead712cb2eab54fba08e545872b.tar.bz2 |
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.
-rw-r--r-- | auto/modules/wasm-wasi-component | 2 |
1 files changed, 1 insertions, 1 deletions
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'" |