diff options
author | Sebastian Neubauer <sebastian.neubauer@amd.com> | 2020-04-27 11:40:31 +0200 |
---|---|---|
committer | Sebastian Neubauer <sebastian.neubauer@amd.com> | 2020-04-30 16:54:20 +0200 |
commit | 1dbb7a3518bb7e82403d57238273283310d9e9e1 (patch) | |
tree | bd5273c6ae50842e62d0b641634b2541536c70a3 /clang/unittests/Format/FormatTestCSharp.cpp | |
parent | ad2da0521a66281be36a9adf54a8ea4293fe27cb (diff) | |
download | llvm-1dbb7a3518bb7e82403d57238273283310d9e9e1.zip llvm-1dbb7a3518bb7e82403d57238273283310d9e9e1.tar.gz llvm-1dbb7a3518bb7e82403d57238273283310d9e9e1.tar.bz2 |
[CMake] Fix cross-compiling with LLVM as CMake subproject
When embedding LLVM as a CMake subproject, using cross-compiling does
not work at the moment. This also affects -DLLVM_OPTIMIZED_TABLEGEN=1,
which uses the same CMake infrastructure.
This patch replaces global CMake variables with the current version,
which allows cross-compilation to work in a subproject.
CMAKE_BINARY_DIR -> CMAKE_CURRENT_BINARY_DIR
CMAKE_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR
CMAKE_PROJECT_NAME -> PROJECT_NAME
Differential Revision: https://reviews.llvm.org/D78913
Diffstat (limited to 'clang/unittests/Format/FormatTestCSharp.cpp')
0 files changed, 0 insertions, 0 deletions