[PATCH] D58372: [compiler-rt][CMake] Set project for the custom libc++

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 18 22:48:23 PST 2019


phosek created this revision.
phosek added a reviewer: Hahnfeld.
Herald added subscribers: llvm-commits, Sanitizers, jdoerfert, christof, mgorny, dberris.
Herald added a reviewer: EricWF.
Herald added projects: LLVM, Sanitizers.

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.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D58372

Files:
  compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt


Index: compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt
===================================================================
--- compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt
+++ compiler-rt/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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58372.187309.patch
Type: text/x-patch
Size: 394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/ea3b70ed/attachment.bin>


More information about the llvm-commits mailing list