[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

llvm-svn: 354350
This commit is contained in:
Petr Hosek 2019-02-19 16:53:33 +00:00
parent 93dfb45256
commit a94e6d70f1
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.4.3)
project(custom-libcxx C CXX)
# Build static libcxxabi.
set(LIBCXXABI_STANDALONE_BUILD 1)