aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-02-19 16:53:33 +0000
committerPetr Hosek <phosek@chromium.org>2019-02-19 16:53:33 +0000
commit9e3652c14c4e53007911fbbefcde51809b7697f2 (patch)
tree709d5296a5e069fb5039b6fcce6533e471bca015 /cmake/Modules
parent9a2890cba41971a1f904f55a299fc2f8a0f3d75a (diff)
[compiler-rt][CMake] Set project for the custom libc++
This is another follow up to r354212 which is broken on Darwin when cross-compiling runtimes to Linux when it ignores the -fuse-ld=lld linker flag and attempts to use the host linker when performing the compiler identification. Upon investigation, I noticed that setting the project with appropriate list of languages makes the error go away and it shouldn't hurt either. Differential Revision: https://reviews.llvm.org/D58372 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@354350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/CustomLibcxx/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/CustomLibcxx/CMakeLists.txt b/cmake/Modules/CustomLibcxx/CMakeLists.txt
index c644dc2fd..683b88e02 100644
--- a/cmake/Modules/CustomLibcxx/CMakeLists.txt
+++ b/cmake/Modules/CustomLibcxx/CMakeLists.txt
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.4.3)
+project(custom-libcxx C CXX)
# Build static libcxxabi.
set(LIBCXXABI_STANDALONE_BUILD 1)