Lines Matching +full:libcxx +full:-
9 -Wno-unused-command-line-argument
10 -nostdinc++
11 -isystem ${LIBCXX_SOURCE_DIR}/include
12 -L${LIBCXX_LIBRARY_DIR}
13 -Wl,-rpath,${LIBCXX_LIBRARY_DIR}
18 -L${LIBCXX_CXX_ABI_LIBRARY_PATH}
19 -Wl,-rpath,${LIBCXX_CXX_ABI_LIBRARY_PATH})
22 list(APPEND BENCHMARK_LIBCXX_COMPILE_FLAGS -include "${LIBCXX_BINARY_DIR}/__config_site")
26 ExternalProject_Add(google-benchmark-libcxx
28 DEPENDS cxx cxx-headers
29 PREFIX benchmark-libcxx
30 SOURCE_DIR ${LIBCXX_SOURCE_DIR}/utils/google-benchmark
31 INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/benchmark-libcxx
33 -DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}
34 -DCMAKE_CXX_COMPILER:STRING=${CMAKE_CXX_COMPILER}
35 -DCMAKE_BUILD_TYPE:STRING=RELEASE
36 -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
37 -DCMAKE_CXX_FLAGS:STRING=${BENCHMARK_LIBCXX_COMPILE_FLAGS}
38 -DBENCHMARK_USE_LIBCXX:BOOL=ON
39 -DBENCHMARK_ENABLE_TESTING:BOOL=OFF)
47 -gcc-toolchain ${LIBCXX_BENCHMARK_NATIVE_GCC_TOOLCHAIN})
52 ExternalProject_Add(google-benchmark-native
54 PREFIX benchmark-native
55 SOURCE_DIR ${LIBCXX_SOURCE_DIR}/utils/google-benchmark
56 INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/benchmark-native
58 -DCMAKE_C_COMPILER:STRING=${CMAKE_C_COMPILER}
59 -DCMAKE_CXX_COMPILER:STRING=${CMAKE_CXX_COMPILER}
60 -DCMAKE_CXX_FLAGS:STRING=${BENCHMARK_NATIVE_TARGET_FLAGS}
61 -DCMAKE_BUILD_TYPE:STRING=RELEASE
62 -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
63 -DBENCHMARK_ENABLE_TESTING:BOOL=OFF)
70 add_custom_target(cxx-benchmarks)
72 set(BENCHMARK_LIBCXX_INSTALL ${CMAKE_CURRENT_BINARY_DIR}/benchmark-libcxx)
73 set(BENCHMARK_NATIVE_INSTALL ${CMAKE_CURRENT_BINARY_DIR}/benchmark-native)
75 check_flag_supported("-std=c++17")
78 set(BENCHMARK_DIALECT_FLAG "-std=c++17")
80 # If the compiler doesn't support -std=c++17, attempt to fall back to -std=c++1z while still
82 set(BENCHMARK_DIALECT_FLAG "-std=c++1z")
86 ${BENCHMARK_DIALECT_FLAG} -O2
87 -I${BENCHMARK_LIBCXX_INSTALL}/include
88 -I${LIBCXX_SOURCE_DIR}/test/support
91 -nostdinc++
92 -isystem ${LIBCXX_SOURCE_DIR}/include
95 -Wno-user-defined-literals
99 -include "${LIBCXX_BINARY_DIR}/__config_site")
103 -nodefaultlibs
104 -L${BENCHMARK_LIBCXX_INSTALL}/lib/
113 -L${BENCHMARK_NATIVE_INSTALL}/lib
127 if (NOT "${LIBSTDCXX_FILESYSTEM_TEST}" STREQUAL "LIBSTDCXX_FILESYSTEM_TEST-NOTFOUND")
138 add_dependencies(${libcxx_target} cxx cxx-headers google-benchmark-libcxx)
139 add_dependencies(cxx-benchmarks ${libcxx_target})
151 target_link_libraries(${libcxx_target} -lbenchmark)
153 target_link_libraries(${libcxx_target} -ldl)
157 OUTPUT_NAME "${name}.libcxx.out"
168 add_dependencies(${native_target} google-benchmark-native
169 google-benchmark-libcxx)
170 target_link_libraries(${native_target} -lbenchmark)
174 target_link_libraries(${native_target} -lc++fs -lc++experimental)
177 target_link_libraries(${native_target} -pthread)
179 add_dependencies(cxx-benchmarks ${native_target})
217 set(BENCHMARK_LIT_ARGS "--show-all --show-xfail --show-unsupported ${LIT_ARGS_DEFAULT}")
219 add_lit_target(check-cxx-benchmarks
220 "Running libcxx benchmarks tests"
222 DEPENDS cxx-benchmarks ${LIBCXX_TEST_DEPS}