This is a not-so-ideal suggestion on how we can add a flag to a single test within SanitizerUnitTestCommon tests. set_source_file_properties(<file> PROPERTIES COMPILE_FLAGS <flag>) does not seem to be considered in generate_compiler_rt_tests. Ideally, this flag would be added in the appropriate CMakeList.txt file in compiler-rt/lib/sanitizer_common/tests/. However, it was not clear how or if it would be possible to add a source-specific change in this file. There are examples of other compiler-rt test-suites using this (i.e. scudo), their source properties are considered (handled with add_compiler_rt_runtime), whereas these are not.
Alternatives:
-We could up this test's macos-min-version to 10.13, rather than lower C++ standard.
-We could apply this flag to the entire test-suite within CMakeList.txt.
-We could up the SANITIZER_MIN_VERSION_DEFAULT to 10.13
Can someone with more cmake know-how recommend an alternative?
rdar://98737270