From 38f0159d861c06c04b82ab2d88c3cf8ea2535ba1 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Thu, 26 Dec 2024 22:34:30 +0900 Subject: [PATCH] add build with libc++ script. --- scripts/bootstrap-cmake-linux-libcpp.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/bootstrap-cmake-linux-libcpp.sh diff --git a/scripts/bootstrap-cmake-linux-libcpp.sh b/scripts/bootstrap-cmake-linux-libcpp.sh new file mode 100755 index 000000000..18439f826 --- /dev/null +++ b/scripts/bootstrap-cmake-linux-libcpp.sh @@ -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 \ + .. +