diff options
author | Petr Hosek <phosek@chromium.org> | 2017-12-12 01:20:52 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-12-12 01:20:52 +0000 |
commit | eff015538b70adcb9f3976ac8d2181513e28c1c1 (patch) | |
tree | 8ba95e68041087146a1ae57a941f47da8af4e706 /cmake/Modules | |
parent | 9b3f7c3d180b156605b9def01ce16465baee9c1c (diff) |
[CMake] Support runtimes and monorepo layouts when looking for libcxx
This also slightly refactors the code that's checking the directory
presence which allows eliminating one unnecessary variable.
Differential Revision: https://reviews.llvm.org/D40637
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/AddCompilerRT.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index f01cba900..d4f636857 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/cmake/Modules/AddCompilerRT.cmake @@ -465,7 +465,7 @@ endmacro(add_compiler_rt_script src name) # DEPS <list of build deps> # CFLAGS <list of compile flags>) macro(add_custom_libcxx name prefix) - if(NOT COMPILER_RT_HAS_LIBCXX_SOURCES) + if(NOT COMPILER_RT_LIBCXX_PATH) message(FATAL_ERROR "libcxx not found!") endif() |