• Home
  • Raw
  • Download

Lines Matching +full:- +full:d_has_exceptions

23 …set(BENCHMARK_BUILD_32_BITS OFF CACHE BOOL "Build a 32 bit version of the library - unsupported wh…
29 option(BENCHMARK_DOWNLOAD_DEPENDENCIES "Allow the downloading and in-tree building of unmet depende…
40 # FIXME: The --coverage flag needs to be removed when building assembly
82 string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION})
95 add_required_cxx_compiler_flag(-m32)
100 string(REGEX REPLACE "[-/]W[1-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
102 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
105 add_cxx_compiler_flag(-EHs-)
106 add_cxx_compiler_flag(-EHa-)
107 add_definitions(-D_HAS_EXCEPTIONS=0)
117 …string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO …
119 …string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO …
121 …string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${…
132 add_cxx_compiler_flag(-std=c++11)
134 add_cxx_compiler_flag(-std=c++0x)
138 add_cxx_compiler_flag(-Wall)
139 add_cxx_compiler_flag(-Wextra)
140 add_cxx_compiler_flag(-Wshadow)
141 add_cxx_compiler_flag(-Werror RELEASE)
142 add_cxx_compiler_flag(-Werror RELWITHDEBINFO)
143 add_cxx_compiler_flag(-Werror MINSIZEREL)
144 add_cxx_compiler_flag(-pedantic)
145 add_cxx_compiler_flag(-pedantic-errors)
146 add_cxx_compiler_flag(-Wshorten-64-to-32)
147 add_cxx_compiler_flag(-fstrict-aliasing)
150 add_cxx_compiler_flag(-Wno-deprecated-declarations)
152 # Intel silently ignores '-Wno-deprecated-declarations',
155 add_cxx_compiler_flag(-wd1786)
157 # Disable deprecation warnings for release builds (when -Werror is enabled).
158 add_cxx_compiler_flag(-Wno-deprecated RELEASE)
159 add_cxx_compiler_flag(-Wno-deprecated RELWITHDEBINFO)
160 add_cxx_compiler_flag(-Wno-deprecated MINSIZEREL)
162 add_cxx_compiler_flag(-fno-exceptions)
166 …if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Intel") #ICC17u2: Many false positives for Wstrict-aliasing
167 add_cxx_compiler_flag(-Wstrict-aliasing)
172 add_cxx_compiler_flag(-wd654)
173 add_cxx_compiler_flag(-Wthread-safety)
183 add_definitions(-D_GNU_SOURCE=1)
187 add_definitions(-D_QNX_SOURCE)
192 add_cxx_compiler_flag(-flto)
194 find_program(GCC_AR gcc-ar)
198 find_program(GCC_RANLIB gcc-ranlib)
203 include(llvm-toolchain)
223 add_cxx_compiler_flag(--coverage COVERAGE)
228 add_cxx_compiler_flag(-stdlib=libc++)
231 add_cxx_compiler_flag(-nostdinc++)
233 # Adding -nodefaultlibs directly to CMAKE_<TYPE>_LINKER_FLAGS will break
235 list(APPEND BENCHMARK_CXX_LINKER_FLAGS -nodefaultlibs)
236 # -lc++ cannot be added directly to CMAKE_<TYPE>_LINKER_FLAGS because
237 # linker flags appear before all linker inputs and -lc++ must appear after.
240 message(FATAL_ERROR "-DBENCHMARK_USE_LIBCXX:BOOL=ON is not supported for compiler")