[CMake] Don't modify `FUZZER_SUPPORTED_ARCH` is place.
authorDan Liew <dan@su-root.co.uk>
Sun, 28 Apr 2019 09:44:53 +0000 (09:44 +0000)
committerDan Liew <dan@su-root.co.uk>
Sun, 28 Apr 2019 09:44:53 +0000 (09:44 +0000)
commit8651edf8985431c1d3f8dfb2b9309c02db5156b5
tree66997250500ecba858bdcc489ad527c70f7a3924
parent8eeb33497cd182d3a99eebbabd4c6dc5498387dc
[CMake] Don't modify `FUZZER_SUPPORTED_ARCH` is place.

On a Darwin host we were modifying the `FUZZER_SUPPORTED_ARCH` in place
which would strip out non-x86 architectures. This unhelpful if we
want to use `FUZZER_SUPPORTED_ARCH` later.

To fix this we introduce `FUZZER_TEST_ARCH` which is similar to what we
have for for the other sanitizers. For non-Darwin host platforms
`FUZZER_TEST_ARCH` is the same as `FUZZER_SUPPORTED_ARCH` but for Darwin
host platforms we use `darwin_filter_host_archs(...)` as the previous
code did.

llvm-svn: 359394
compiler-rt/test/fuzzer/CMakeLists.txt