Skip to content

Commit 6aac82a

Browse files
authored
Arm backend: Fix broken logic when checking os in utils.sh (#13939)
The logic was flawed due to incorrect use of the logical OR operator. This condition will always evaluate to true because an OS cant be both Darwin and Linux simultaneously. Signed-off-by: [email protected]
1 parent ea5cf49 commit 6aac82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/arm/scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function check_os_support() {
8484
# Linux on arm64/aarch64
8585
# Darwin on arm64/aarch64
8686
if [[ "${ARCH}" == "aarch64" ]] || [[ "${ARCH}" == "arm64" ]]; then
87-
if [[ "${OS}" != "Darwin" ]] || [[ "${OS}" != "Linux" ]]; then
87+
if [[ "${OS}" != "Darwin" ]] && [[ "${OS}" != "Linux" ]]; then
8888
echo "Error: Only Linux and Darwin are supported on arm64"
8989
exit 1
9090
fi

0 commit comments

Comments
 (0)