forked from OSchip/llvm-project
parent
9ece2f7529
commit
ed84f4abd4
|
@ -120,7 +120,11 @@ endmacro()
|
||||||
file(GLOB BENCHMARK_TESTS "*.bench.cpp")
|
file(GLOB BENCHMARK_TESTS "*.bench.cpp")
|
||||||
foreach(test_path ${BENCHMARK_TESTS})
|
foreach(test_path ${BENCHMARK_TESTS})
|
||||||
get_filename_component(test_file "${test_path}" NAME)
|
get_filename_component(test_file "${test_path}" NAME)
|
||||||
message(STATUS "Adding Benchmark: ${test_file}")
|
|
||||||
string(REPLACE ".bench.cpp" "" test_name "${test_file}")
|
string(REPLACE ".bench.cpp" "" test_name "${test_file}")
|
||||||
|
if (NOT DEFINED ${test_name}_REPORTED)
|
||||||
|
message(STATUS "Adding Benchmark: ${test_file}")
|
||||||
|
# Only report the adding of the benchmark once.
|
||||||
|
set(${test_name}_REPORTED ON CACHE INTERNAL "")
|
||||||
|
endif()
|
||||||
add_benchmark_test(${test_name} ${test_file})
|
add_benchmark_test(${test_name} ${test_file})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
@ -105,10 +105,7 @@ if (LIBCXX_USING_INSTALLED_LLVM OR LIBCXX_STANDALONE_BUILD)
|
||||||
|
|
||||||
# Required doc configuration
|
# Required doc configuration
|
||||||
if (LLVM_ENABLE_SPHINX)
|
if (LLVM_ENABLE_SPHINX)
|
||||||
message(STATUS "Sphinx enabled.")
|
|
||||||
find_package(Sphinx REQUIRED)
|
find_package(Sphinx REQUIRED)
|
||||||
else()
|
|
||||||
message(STATUS "Sphinx disabled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# FIXME - This is cribbed from HandleLLVMOptions.cmake.
|
# FIXME - This is cribbed from HandleLLVMOptions.cmake.
|
||||||
|
|
Loading…
Reference in New Issue