diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-12-10 17:30:16 -0800 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-12-10 17:33:54 -0800 |
commit | 30fc88bf1dc15a72e2d9809d28019d386b7a7cc0 (patch) | |
tree | e70db1ab5034bb5cf369d8ebb15ce20841e0669f /llvm/tools/llvm-config/llvm-config.cpp | |
parent | 654aa3ad92f2e496eb082cf07b3de3471ae58a92 (diff) | |
download | llvm-30fc88bf1dc15a72e2d9809d28019d386b7a7cc0.zip llvm-30fc88bf1dc15a72e2d9809d28019d386b7a7cc0.tar.gz llvm-30fc88bf1dc15a72e2d9809d28019d386b7a7cc0.tar.bz2 |
Revert "Revert "Revert "Use `GNUInstallDirs` to support custom installation dirs. -- LLVM"""
This reverts commit 492de35df443d5f31480173d5f1274c7835cd3d8.
I tried to apply John's changes in 8d897ec91528 that were expected to
fix his patch but that didn't work unfortunately.
Reverting this again to fix the macOS bots and leave him more time to
investigate the issue.
Diffstat (limited to 'llvm/tools/llvm-config/llvm-config.cpp')
-rw-r--r-- | llvm/tools/llvm-config/llvm-config.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp index bce73ae..8afd359 100644 --- a/llvm/tools/llvm-config/llvm-config.cpp +++ b/llvm/tools/llvm-config/llvm-config.cpp @@ -357,16 +357,10 @@ int main(int argc, char **argv) { ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include"); } else { ActivePrefix = CurrentExecPrefix; - { - SmallString<256> Path(LLVM_INSTALL_INCLUDEDIR); - sys::fs::make_absolute(ActivePrefix, Path); - ActiveIncludeDir = std::string(Path.str()); - } - { - SmallString<256> Path(LLVM_INSTALL_BINDIR); - sys::fs::make_absolute(ActivePrefix, Path); - ActiveBinDir = std::string(Path.str()); - } + ActiveIncludeDir = ActivePrefix + "/include"; + SmallString<256> path(LLVM_TOOLS_INSTALL_DIR); + sys::fs::make_absolute(ActivePrefix, path); + ActiveBinDir = std::string(path.str()); ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX; ActiveCMakeDir = ActiveLibDir + "/cmake/llvm"; ActiveIncludeOption = "-I" + ActiveIncludeDir; |