[libcxx-commits] [PATCH] D113503: [libc++] Disallow running the libc++ benchmarks in standalone builds

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 11 11:13:48 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4e70b50b74db: [libc++] Disallow running the libc++ benchmarks in standalone builds (authored by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113503/new/

https://reviews.llvm.org/D113503

Files:
  libcxx/benchmarks/CMakeLists.txt
  libcxx/utils/ci/run-buildbot


Index: libcxx/utils/ci/run-buildbot
===================================================================
--- libcxx/utils/ci/run-buildbot
+++ libcxx/utils/ci/run-buildbot
@@ -520,6 +520,7 @@
           -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
           -DLLVM_PATH="${MONOREPO_ROOT}/llvm" \
           -DLIBCXX_CXX_ABI=libcxxabi \
+          -DLIBCXX_INCLUDE_BENCHMARKS=OFF \
           -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${MONOREPO_ROOT}/libcxxabi/include" \
           -DLIBCXX_CXX_ABI_LIBRARY_PATH="${BUILD_DIR}/libcxxabi/lib"
 
Index: libcxx/benchmarks/CMakeLists.txt
===================================================================
--- libcxx/benchmarks/CMakeLists.txt
+++ libcxx/benchmarks/CMakeLists.txt
@@ -3,6 +3,12 @@
   return()
 endif()
 
+if (LIBCXX_STANDALONE_BUILD)
+  message(WARNING "The libc++ benchmarks are not available in a standalone build. Please migrate to an official build "
+                  "as documented in https://libcxx.llvm.org/BuildingLibcxx.html.")
+  return()
+endif()
+
 include(ExternalProject)
 include(CheckCXXCompilerFlag)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113503.386601.patch
Type: text/x-patch
Size: 1069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211111/144889b2/attachment-0001.bin>


More information about the libcxx-commits mailing list