Skip to content

Commit

Permalink
build: set sysroot
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Nov 9, 2024
1 parent 1359001 commit d4c3193
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions m.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ case "$1" in
rm -rf "build" && mkdir -p "build"
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_SYSTEM_NAME="Linux" \
-DCMAKE_FIND_ROOT_PATH="${SYSROOT};${LIBROOT}" \
-DCMAKE_SYSROOT="${SYSROOT}" \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-DCMAKE_SKIP_RPATH=ON \
-S . -B "build"
Expand Down Expand Up @@ -67,11 +66,10 @@ case "$1" in
rm -rf "build" && mkdir "build"
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_ANDROID_NDK="${ANDROID_NDK_ROOT}" \
-DCMAKE_SYSTEM_NAME="Android" \
-DCMAKE_SYSTEM_VERSION="${ANDROID_API_LEVEL}" \
-DCMAKE_ANDROID_NDK="${ANDROID_NDK_ROOT}" \
-DCMAKE_ANDROID_ARCH_ABI="${ABI_NAME}" \
-DCMAKE_FIND_ROOT_PATH="${SYSROOT};${LIBROOT}" \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-DENABLE_MIMALLOC=ON \
-DLINK_STATIC_LIBS=ON \
Expand Down

0 comments on commit d4c3193

Please sign in to comment.