From e9c5d02e14b87f22c28605169df783feb8de7898 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Thu, 19 Dec 2019 18:03:42 -1000 Subject: llvm with libtapi supporting v3 in progress --- data/_llvm10/buildpath.diff | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 data/_llvm10/buildpath.diff (limited to 'data/_llvm10/buildpath.diff') diff --git a/data/_llvm10/buildpath.diff b/data/_llvm10/buildpath.diff new file mode 100644 index 000000000..ffecb8996 --- /dev/null +++ b/data/_llvm10/buildpath.diff @@ -0,0 +1,41 @@ +diff -ur llvm-project-apple-stable-20191106/llvm/tools/llvm-config/llvm-config.cpp llvm-project-apple-stable-20191106+iOS/llvm/tools/llvm-config/llvm-config.cpp +--- llvm-project-apple-stable-20191106/llvm/tools/llvm-config/llvm-config.cpp 2019-12-03 19:28:47.000000000 -1000 ++++ llvm-project-apple-stable-20191106+iOS/llvm/tools/llvm-config/llvm-config.cpp 2019-12-06 09:02:23.000000000 -1000 +@@ -287,15 +287,15 @@ + + // Check to see if we are inside a development tree by comparing to possible + // locations (prefix style or CMake style). +- if (sys::fs::equivalent(CurrentExecPrefix, LLVM_OBJ_ROOT)) { ++ if (sys::fs::equivalent(CurrentExecPrefix, "/usr/src/llvm/build")) { + IsInDevelopmentTree = true; + DevelopmentTreeLayout = CMakeStyle; +- ActiveObjRoot = LLVM_OBJ_ROOT; ++ ActiveObjRoot = "/usr/src/llvm/build"; + } else if (sys::fs::equivalent(sys::path::parent_path(CurrentExecPrefix), +- LLVM_OBJ_ROOT)) { ++ "/usr/src/llvm/build")) { + IsInDevelopmentTree = true; + DevelopmentTreeLayout = CMakeBuildModeStyle; +- ActiveObjRoot = LLVM_OBJ_ROOT; ++ ActiveObjRoot = "/usr/src/llvm/build"; + } else { + IsInDevelopmentTree = false; + DevelopmentTreeLayout = CMakeStyle; // Initialized to avoid warnings. +@@ -307,7 +307,7 @@ + ActiveCMakeDir; + std::string ActiveIncludeOption; + if (IsInDevelopmentTree) { +- ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include"; ++ ActiveIncludeDir = std::string("/usr/src/llvm") + "/include"; + ActivePrefix = CurrentExecPrefix; + + // CMake organizes the products differently than a normal prefix style +@@ -562,7 +562,7 @@ + } else if (Arg == "--obj-root") { + OS << ActivePrefix << '\n'; + } else if (Arg == "--src-root") { +- OS << LLVM_SRC_ROOT << '\n'; ++ OS << "/usr/src/llvm" << '\n'; + } else if (Arg == "--ignore-libllvm") { + LinkDyLib = false; + LinkMode = BuiltSharedLibs ? LinkModeShared : LinkModeAuto; -- cgit v1.2.3