From 9e3652c14c4e53007911fbbefcde51809b7697f2 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 19 Feb 2019 16:53:33 +0000 Subject: [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 --- cmake/Modules/CustomLibcxx/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/Modules') 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) -- cgit v1.2.1