We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab1059 commit 127c935Copy full SHA for 127c935
src/globals/scripts/zig-cc.sh
@@ -1,12 +1,7 @@
1
#!/usr/bin/env bash
2
3
-if [ "$BUILD_ROOT_PATH" = "" ]; then
4
- echo "The script must be run in the SPC build environment."
5
- exit 1
6
-fi
7
-
8
SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
9
-BUILDROOT_ABS=$BUILD_ROOT_PATH
+BUILDROOT_ABS="${BUILD_ROOT_PATH:-$(realpath "$SCRIPT_DIR/../../../buildroot/include" 2>/dev/null || true)}"
10
PARSED_ARGS=()
11
12
while [[ $# -gt 0 ]]; do
0 commit comments