llvm.org GIT mirror llvm / 0c5b5c7
[CMake] [Runtimes] Set *_STANDALONE_BUILD Summary: The runtimes use `*_STANDALONE_BUILD=OFF` to signify that clang is an in-tree target. This is not the case with the runtime builds, so we really need this set to `ON`. In order to resolve the issues phosek was having with checks, we should use checks that don't link. We can use compiler-rt's `try_compile_only` as a basis for that. This patch is *required* to be able to run the runtime libraries check-* targets. Reviewers: smeenai, phosek, compnerd Reviewed By: phosek Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62410 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362007 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman a month ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
126126 # TODO: Clean this up as part of an interface standardization
127127 string(REPLACE "-" "_" canon_name ${projName})
128128 string(TOUPPER ${canon_name} canon_name)
130 # The subdirectories need to treat this as standalone builds. D57992 tried
131 # to get rid of this, but the runtimes treat *_STANDALONE_BUILD=OFF as if
132 # llvm & clang are configured in the same CMake, and setup dependencies
133 # against their targets.
134 set(${canon_name}_STANDALONE_BUILD ON)