From baaaeb4b9adf53f56d35409cbadf8260ad17e752 Mon Sep 17 00:00:00 2001 From: Cheng Shao Date: Fri, 10 Jan 2025 22:00:48 +0000 Subject: [PATCH] build: use clang & set MI_LIBC_MUSL --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 2905dc3..f8d7fdc 100755 --- a/build.sh +++ b/build.sh @@ -11,6 +11,7 @@ apk upgrade --no-cache apk add --no-cache \ alpine-sdk \ cargo \ + clang \ cmake \ curl \ mold \ @@ -27,9 +28,11 @@ patch -p1 < /tmp/mimalloc.diff cmake \ -Bout \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=clang \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMI_BUILD_OBJECT=OFF \ -DMI_BUILD_TESTS=OFF \ + -DMI_LIBC_MUSL=ON \ -DMI_SKIP_COLLECT_ON_EXIT=ON \ -G Ninja \ .