libshit

Just some random shit
git clone https://git.neptards.moe/neptards/libshit.git
Log | Files | Refs | Submodules | README | LICENSE

0007-llvm-config-Clean-up-exported-values-update-for-shar.patch (1188B)


      1 From 628b899be14a6bab4b32dbd53aabd447dcc16cb7 Mon Sep 17 00:00:00 2001
      2 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
      3 Date: Sat, 20 Aug 2016 23:47:41 +0200
      4 Subject: [PATCH] llvm-config: Clean up exported values, update for shared
      5  linking
      6 
      7 Gentoo-specific fixup for llvm-config, including:
      8 - making --src-root return invalid path (/dev/null).
      9 
     10 Thanks to Steven Newbury for the initial patch.
     11 
     12 Bug: https://bugs.gentoo.org/565358
     13 Bug: https://bugs.gentoo.org/501684
     14 
     15 diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp
     16 index d780094861c..c61c72ff48c 100644
     17 --- a/tools/llvm-config/llvm-config.cpp
     18 +++ b/tools/llvm-config/llvm-config.cpp
     19 @@ -549,7 +550,11 @@ int main(int argc, char **argv) {
     20        } else if (Arg == "--obj-root") {
     21          OS << ActivePrefix << '\n';
     22        } else if (Arg == "--src-root") {
     23 -        OS << LLVM_SRC_ROOT << '\n';
     24 +        if (IsInDevelopmentTree) {
     25 +          OS << LLVM_SRC_ROOT << '\n';
     26 +        } else {
     27 +          OS << "/dev/null\n";
     28 +        }
     29        } else if (Arg == "--ignore-libllvm") {
     30          LinkDyLib = false;
     31          LinkMode = BuiltSharedLibs ? LinkModeShared : LinkModeAuto;
     32 -- 
     33 2.11.0
     34