Go to file
Petr Hosek 6fd4e7fe02 [CMake] Support CMake variables for setting target, sysroot and toolchain
CMake has a standard way of setting target triple, sysroot and external
toolchain through CMAKE_<LANG>_COMPILER_TARGET, CMAKE_SYSROOT and
CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN. These are turned into
corresponding --target=, --sysroot= and --gcc-toolchain= variables add
included appended to CMAKE_<LANG>_FLAGS.

libunwind, libc++abi, libc++ provides their own mechanism through
<PROJECT>_TARGET_TRIPLE, <PROJECT>_SYSROOT and <PROJECT>_GCC_TOOLCHAIN
variables. These are also passed to lit via lit.site.cfg, and lit config
uses these to set the corresponding compiler flags when building tessts.

This means that there are two different ways of setting target, sysroot
and toolchain, but only one is properly supported in lit. This change
extends CMake build for libunwind, libc++abi and libc++ to also support
the CMake variables in addition to project specific ones in lit.

Differential Revision: https://reviews.llvm.org/D57670

llvm-svn: 353084
2019-02-04 20:02:26 +00:00
clang [clang-format] Fix breaking of qualified operator 2019-02-04 09:56:16 +00:00
clang-tools-extra [clang-tidy] Add the abseil-duration-unnecessary-conversion check 2019-02-04 19:28:20 +00:00
compiler-rt [scudo] Initial standalone skeleton check-in 2019-02-04 16:25:40 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
libcxx [CMake] Support CMake variables for setting target, sysroot and toolchain 2019-02-04 20:02:26 +00:00
libcxxabi [CMake] Support CMake variables for setting target, sysroot and toolchain 2019-02-04 20:02:26 +00:00
libunwind [CMake] Support CMake variables for setting target, sysroot and toolchain 2019-02-04 20:02:26 +00:00
lld [WebAssembly] clang-tidy (NFC) 2019-02-04 19:13:46 +00:00
lldb Fixes for the ProcessLaunchInfo move 2019-02-04 15:03:06 +00:00
llgo Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
llvm [AMDGPU] Support emitting GOT relocations for function calls 2019-02-04 20:00:07 +00:00
openmp [OMPT] Make sure that OMPT is enabled when accessing internals of the runtime 2019-02-04 15:59:42 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
pstl Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
.arcconfig Update monorepo .arcconfig with new project callsign. 2019-01-31 14:34:59 +00:00
.clang-format Add .clang-tidy and .clang-format files to the toplevel of the 2019-01-29 16:43:16 +00:00
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
README.md

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.