Skip to content

Commit

Permalink
add build with libc++ script.
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Dec 26, 2024
1 parent db6cad0 commit 38f0159
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/bootstrap-cmake-linux-libcpp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
curdir=`pwd`

builddir=${curdir}/build_libcpp

rm -rf ${builddir}
mkdir ${builddir}

# with lld linker
# -DCMAKE_TOOLCHAIN_FILE=cmake/lld-linux.toolchain.cmake

cd ${builddir} && CXX=clang++-18 CC=clang-18 cmake \
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
-DCMAKE_VERBOSE_MAKEFILE=1 \
..

0 comments on commit 38f0159

Please sign in to comment.