summaryrefslogtreecommitdiffhomepage
path: root/auto/modules
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-02-27 14:42:41 -0800
committerKonstantin Pavlov <pavlov.konstantin@gmail.com>2024-02-27 16:44:42 -0800
commit23e807dea3a68ead712cb2eab54fba08e545872b (patch)
tree4d5e88df466d2dd2d839dfcf56a007a23041dc71 /auto/modules
parente67d7433282c367df6b1599858650d8261b6e080 (diff)
downloadunit-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.
Diffstat (limited to 'auto/modules')
-rw-r--r--auto/modules/wasm-wasi-component2
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'"