kbobyrev accepted this revision. kbobyrev added a comment. This revision is now accepted and ready to land.
In https://reviews.llvm.org/D52998#1258962, @eandrews wrote: > Yes. I understand. At the moment, exception handling flags are generated > based on `BENCHMARK_ENABLE_EXCEPTIONS` in `utils/benchmark/CMakeLists.txt` . > However, `_HAS_EXCEPTIONS` is not defined based on this (code below). The > warnings are a result of this mismatch. > > if (NOT BENCHMARK_ENABLE_EXCEPTIONS) > add_cxx_compiler_flag(-EHs-) > add_cxx_compiler_flag(-EHa-) > endif() > > > I think it makes most sense to add definition for `_HAS_EXCEPTIONS=0 `here as > opposed to modifying `llvm/CMakeLists.txt`. Please correct me if I'm wrong. > I'm not too familiar with CMake. @kbobyrev Please let me know what you think > as well since you had suggested `llvm/CMakeLists.txt`. As discussed in the mailing list, I think it also makes sense to set this Sorry for the delay; yes, this looks good to me! https://reviews.llvm.org/D52998 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits