llvm-project/compiler-rt/cmake
Dan Liew 713da8db39 Fix bug in `darwin_test_archs()` when the cache variable is set but empty.
Summary:
If the cache variable named in `${valid_archs}` (e.g. `DARWIN_osx_BUILTIN_ARCHS`)
is set in the cache but is empty then the cache check
`if(${valid_archs})` will be false so the function will probe the
compiler but the `set(...)` command at the end of the function to update
the cache variable will be a no-op. This is because `set(...)` will not
update an existing cache variable unless the `FORCE` argument is
provided.

To fix this this patch adds `FORCE` so the cache is always updated.

rdar://problem/55323665

Reviewers: vsk, kubamracek

Subscribers: mgorny, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D67530

llvm-svn: 371872
2019-09-13 17:31:24 +00:00
..
Modules Fix bug in `darwin_test_archs()` when the cache variable is set but empty. 2019-09-13 17:31:24 +00:00
caches
base-config-ix.cmake Use host's executable suffix for clang when cross-compiling compiler-rt 2019-09-12 18:44:47 +00:00
builtin-config-ix.cmake [CMake] Separate the detection Darwin platforms architectures for the 2019-09-13 17:31:22 +00:00
config-ix.cmake [cmake] enable x86 libfuzzer on Windows 2019-08-29 17:47:43 +00:00