Skip to content

Commit

Permalink
probe CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-immunant committed Oct 22, 2024
1 parent 0e724f2 commit 0201415
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cross-build-rtlibs.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/sh
# build compiler-rt, libcxx, libcxxabi, and libunwind with our patched clang
# see https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html
set -x
mkdir -p build-rtlibs
cd build-rtlibs
cross_flags="--sysroot=/usr/aarch64-linux-gnu/ --gcc-install-dir=/usr/lib/gcc/aarch64-linux-gnu/14.1.0 --rtlib=compiler-rt -march=armv8+memtag -ffixed-x18"
ls -l /usr/lib/gcc/aarch64-linux-gnu
cross_flags="-B/usr/lib/gcc/aarch64-linux-gnu/14.1.0/ --sysroot=/usr/aarch64-linux-gnu -isystem /usr/aarch64-linux-gnu/include --rtlib=compiler-rt -march=armv8+memtag -ffixed-x18"
#--sysroot=/usr/aarch64-linux-gnu/ --gcc-install-dir=/usr/lib/gcc/aarch64-linux-gnu/14.1.0
export LDFLAGS="-L/usr/aarch64-linux-gnu/lib"
cmake -GNinja -DLLVM_TARGETS_TO_BUILD="AArch64" -DLLVM_DEFAULT_TARGET_TRIPLE="aarch64-linux-gnu" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Expand Down

0 comments on commit 0201415

Please sign in to comment.