[libcxx-commits] [PATCH] D90043: [libc++] Build the benchmarks as part of the build bots

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 23 08:11:51 PDT 2020


ldionne updated this revision to Diff 300302.
ldionne added a comment.
Herald added a subscriber: mgorny.
Herald added a project: libc++abi.
Herald added a reviewer: libc++abi.

Fix the benchmarks on macOS


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90043

Files:
  libcxx/src/CMakeLists.txt
  libcxx/utils/ci/run-buildbot.sh
  libcxxabi/src/CMakeLists.txt


Index: libcxxabi/src/CMakeLists.txt
===================================================================
--- libcxxabi/src/CMakeLists.txt
+++ libcxxabi/src/CMakeLists.txt
@@ -202,6 +202,8 @@
     list(APPEND LIBCXXABI_INSTALL_TARGETS "cxxabi_shared")
   endif()
 
+  add_library(cxxabi-reexports INTERFACE)
+
   # -exported_symbols_list is only available on Apple platforms
   if (APPLE)
     function(export_symbols file)
@@ -209,7 +211,7 @@
     endfunction()
     function(reexport_symbols file)
       export_symbols("${file}")
-      target_link_libraries(cxxabi_shared INTERFACE "-Wl,-reexported_symbols_list,${file}")
+      target_link_libraries(cxxabi-reexports INTERFACE "-Wl,-reexported_symbols_list,${file}")
     endfunction()
 
     export_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/itanium-base.exp")
Index: libcxx/utils/ci/run-buildbot.sh
===================================================================
--- libcxx/utils/ci/run-buildbot.sh
+++ libcxx/utils/ci/run-buildbot.sh
@@ -153,5 +153,8 @@
 echo "+++ Installing libc++ and libc++abi to a fake location"
 ninja -C "${BUILD_DIR}" install-cxx install-cxxabi
 
+echo "+++ Building the benchmarks"
+ninja -C "${BUILD_DIR}" cxx-benchmarks
+
 # echo "+++ Running the libc++ benchmarks"
 # ninja -C "${BUILD_DIR}" check-cxx-benchmarks
Index: libcxx/src/CMakeLists.txt
===================================================================
--- libcxx/src/CMakeLists.txt
+++ libcxx/src/CMakeLists.txt
@@ -222,6 +222,8 @@
       "-Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/libc++abi.v${LIBCXX_LIBCPPABI_VERSION}.exp"
       "-Wl,-force_symbols_not_weak_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/notweak.exp"
       "-Wl,-force_symbols_weak_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/weak.exp")
+
+    target_link_libraries(cxx_shared PRIVATE cxxabi-reexports)
   endif()
 
   # Generate a linker script in place of a libc++.so symlink.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90043.300302.patch
Type: text/x-patch
Size: 1913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201023/660bd97f/attachment.bin>


More information about the libcxx-commits mailing list