Skip to content

Commit 77fc3e5

Browse files
MrMYHuangTheAssassin
authored andcommitted
Fix ARM64 arch name for rpm.
1 parent 44cabe4 commit 77fc3e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ if [ "$ARCH" == "arm64" ]; then
8989
"-DCMAKE_C_COMPILER=clang-8"
9090
"-DCMAKE_CXX_COMPILER=clang++-8"
9191
)
92+
# RPM-based Linux distributions use aarch64 instead of arm64 as ARM64 architecture name.
93+
ARCH="aarch64"
9294
fi
9395

96+
export CPACK_RPM_PACKAGE_ARCHITECTURE="${ARCH}"
97+
9498
cmake "$REPO_ROOT" "${cmake_args[@]}"
9599

96100
# now, compile

0 commit comments

Comments
 (0)