[libcxx-commits] [libcxx] 3535ea0 - [libc++] Fix linking benchmarks (#116495)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 21 08:38:15 PST 2024


Author: Nikolas Klauser
Date: 2024-11-21T17:38:12+01:00
New Revision: 3535ea0ba6c6fda69acaf215d7e9e93045466b50

URL: https://github.com/llvm/llvm-project/commit/3535ea0ba6c6fda69acaf215d7e9e93045466b50
DIFF: https://github.com/llvm/llvm-project/commit/3535ea0ba6c6fda69acaf215d7e9e93045466b50.diff

LOG: [libc++] Fix linking benchmarks (#116495)

On my system the library path ends with `lib64` instead of `lib`.

Added: 
    

Modified: 
    libcxx/test/configs/cmake-bridge.cfg.in

Removed: 
    


################################################################################
diff  --git a/libcxx/test/configs/cmake-bridge.cfg.in b/libcxx/test/configs/cmake-bridge.cfg.in
index b802af4984325a..61f821a7e4f6b8 100644
--- a/libcxx/test/configs/cmake-bridge.cfg.in
+++ b/libcxx/test/configs/cmake-bridge.cfg.in
@@ -30,4 +30,4 @@ config.substitutions.append(('%{target-include-dir}', '@LIBCXX_TESTING_INSTALL_P
 config.substitutions.append(('%{lib-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_LIBRARY_DIR@'))
 config.substitutions.append(('%{module-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_MODULES_DIR@'))
 config.substitutions.append(('%{test-tools-dir}', '@LIBCXX_TEST_TOOLS_PATH@'))
-config.substitutions.append(('%{benchmark_flags}', '-I @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/include -L @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/lib -l benchmark'))
+config.substitutions.append(('%{benchmark_flags}', '-I @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/include -L @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/lib -L @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/lib64 -l benchmark'))


        


More information about the libcxx-commits mailing list