mirror of
https://github.com/google/benchmark.git
synced 2025-04-01 07:00:32 +08:00
Disable exceptions in Microsoft STL (#715)
This is the copy of patch proposed to LLVM's copy of benchmark via https://reviews.llvm.org/D52998.
This commit is contained in:
parent
c6193afe7e
commit
a9b31c51b1
@ -103,6 +103,7 @@ if (MSVC)
|
|||||||
if (NOT BENCHMARK_ENABLE_EXCEPTIONS)
|
if (NOT BENCHMARK_ENABLE_EXCEPTIONS)
|
||||||
add_cxx_compiler_flag(-EHs-)
|
add_cxx_compiler_flag(-EHs-)
|
||||||
add_cxx_compiler_flag(-EHa-)
|
add_cxx_compiler_flag(-EHa-)
|
||||||
|
add_definitions(-D_HAS_EXCEPTIONS=0)
|
||||||
endif()
|
endif()
|
||||||
# Link time optimisation
|
# Link time optimisation
|
||||||
if (BENCHMARK_ENABLE_LTO)
|
if (BENCHMARK_ENABLE_LTO)
|
||||||
|
Loading…
Reference in New Issue
Block a user