llvm-project/compiler-rt/cmake/Modules
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
..
CustomLibcxx [compiler-rt] Build custom libc++abi without exceptions. 2019-04-25 18:14:24 +00:00
AddCompilerRT.cmake [sanitizer] Add lld into dependency of sanitizer_common unittests 2019-08-27 02:06:34 +00:00
BuiltinTests.cmake [CMake] Fix broken uses of `try_compile_only()` and improve the function. 2019-03-15 20:14:46 +00:00
CompilerRTCompile.cmake [CMake] Avoid clang dependencies in the runtimes build 2019-02-13 06:49:47 +00:00
CompilerRTDarwinUtils.cmake Fix bug in `darwin_test_archs()` when the cache variable is set but empty. 2019-09-13 17:31:24 +00:00
CompilerRTLink.cmake Make cmake link flag naming consistent 2017-01-10 04:33:04 +00:00
CompilerRTUtils.cmake Enable compiler-rt on SPARC 2019-07-12 08:30:17 +00:00
HandleCompilerRT.cmake [CMake] Add a missing case of TO_CMAKE_PATH 2018-11-27 09:23:15 +00:00
SanitizerUtils.cmake [compiler-rt] Respect CMAKE_NM 2019-06-15 04:40:16 +00:00
UseLibtool.cmake [builtins] Use libtool for builtins when building for Apple platform 2019-06-04 02:38:15 +00:00