Skip to content

Commit 8dfd8c7

Browse files
fix(nemo-speech-cpp): skip Linux GPU packaging on Darwin
The shared GPU packaging helper requires Bash associative arrays, which are unavailable in macOS's Bash 3.2. Metal uses system frameworks and has no Linux GPU libraries to bundle, so do not source the helper on Darwin. Assisted-by: Codex:gpt-5 [Codex]
1 parent 21249dd commit 8dfd8c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/go/nemo-speech-cpp/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fi
151151
# based on BUILD_TYPE so the backend can reach the GPU without the runtime
152152
# base image shipping those drivers.
153153
GPU_LIB_SCRIPT="${REPO_ROOT}/scripts/build/package-gpu-libs.sh"
154-
if [ -f "$GPU_LIB_SCRIPT" ]; then
154+
if [ "$(uname)" != "Darwin" ] && [ -f "$GPU_LIB_SCRIPT" ]; then
155155
echo "Packaging GPU libraries for BUILD_TYPE=${BUILD_TYPE:-cpu}..."
156156
source "$GPU_LIB_SCRIPT" "$CURDIR/package/lib"
157157
package_gpu_libs

0 commit comments

Comments
 (0)