[compiler-rt] r354350 - [compiler-rt][CMake] Set project for the custom libc++

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 08:53:33 PST 2019


Author: phosek
Date: Tue Feb 19 08:53:33 2019
New Revision: 354350

URL: http://llvm.org/viewvc/llvm-project?rev=354350&view=rev
Log:
[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

Modified:
    compiler-rt/trunk/cmake/Modules/CustomLibcxx/CMakeLists.txt

Modified: compiler-rt/trunk/cmake/Modules/CustomLibcxx/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CustomLibcxx/CMakeLists.txt?rev=354350&r1=354349&r2=354350&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CustomLibcxx/CMakeLists.txt (original)
+++ compiler-rt/trunk/cmake/Modules/CustomLibcxx/CMakeLists.txt Tue Feb 19 08:53:33 2019
@@ -1,4 +1,5 @@
 cmake_minimum_required(VERSION 3.4.3)
+project(custom-libcxx C CXX)
 
 # Build static libcxxabi.
 set(LIBCXXABI_STANDALONE_BUILD 1)




More information about the llvm-commits mailing list