aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2018-11-13 03:42:46 +0000
committerTom Stellard <tstellar@redhat.com>2018-11-13 03:42:46 +0000
commite4faa5c7986b7d90d4cf695a39e2a2596ec9c508 (patch)
treecb5479e5729e4305b00aef73b7146a2e07ca0524 /clang/lib/CodeGen/CodeGenModule.cpp
parent17e7bf853d1106c0aef97b2f1b8af1346838f02b (diff)
downloadllvm-e4faa5c7986b7d90d4cf695a39e2a2596ec9c508.zip
llvm-e4faa5c7986b7d90d4cf695a39e2a2596ec9c508.tar.gz
llvm-e4faa5c7986b7d90d4cf695a39e2a2596ec9c508.tar.bz2
CMake: Deprecate using llvm-config to detect llvm installation
Summary: clang currently uses llvm-config to determine the installation paths for llvm's headers and binaries. clang is also using LLVM's cmake files to determine other information about the LLVM build, like LLVM_LIBDIR_SUFFIX, LLVM_VERSION_*, etc. Since the installation paths are also available via the cmake files, we can simplify the code by only relying on information from cmake about the LLVM install and dropping the use of llvm-config altogether. In addition to simplifying the code, the cmake files have more accurate information about the llvm installation paths. llvm-config assumes that the lib, bin, and cmake directories are always located in the same place relative to the path of the llvm-config executable. This can be wrong if a user decides to install headers, binaries or libraries to a non-standard location: e.g. static libraries installed to /usr/lib/llvm6.0/ This patch takes the first step towards dropping llvm-config by removing the automatic detection of llvm-config (users can still manually supply a path to llvm-config by passing -DLLVM_CONFIG=/usr/bin/llvm-config to cmake) and adding a deprecation warning when users try to use this option. Reviewers: chandlerc, beanz, mgorny, chapuni Subscribers: mehdi_amini, dexonsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D51714 llvm-svn: 346732
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions