Skip to content

Commit 3176e21

Browse files
committed
fix use of renamed member function in patch
1 parent 7a8fc38 commit 3176e21

8 files changed

+25
-25
lines changed

recipe/patches/0001-Fix-sysroot-detection-for-linux.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9e7489a7585037b21c90dcf74d410c600cde56e2 Mon Sep 17 00:00:00 2001
1+
From a9db4f6f2feecd44d7ee7e65b5ec5919fbc80726 Mon Sep 17 00:00:00 2001
22
From: Isuru Fernando <[email protected]>
33
Date: Mon, 8 Apr 2019 16:32:17 -0500
44
Subject: [PATCH 1/8] Fix sysroot detection for linux
@@ -8,10 +8,10 @@ Subject: [PATCH 1/8] Fix sysroot detection for linux
88
1 file changed, 16 insertions(+), 4 deletions(-)
99

1010
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
11-
index 1ba222bf83b1..ee361924b9e8 100644
11+
index 4300a2bdff17..401834493cb3 100644
1212
--- a/clang/lib/Driver/ToolChains/Linux.cpp
1313
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
14-
@@ -394,18 +394,30 @@ std::string Linux::computeSysRoot() const {
14+
@@ -398,18 +398,30 @@ std::string Linux::computeSysRoot() const {
1515
return std::string();
1616
}
1717

recipe/patches/0002-clang-add-conda-specific-env-var-CONDA_BUILD_SYSROOT.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 790933939291c1d7204bc98c51da8727da871c81 Mon Sep 17 00:00:00 2001
1+
From 3d48e9d06b4c1af2995851c21856858579c05c8e Mon Sep 17 00:00:00 2001
22
From: Nehal J Wani <[email protected]>
33
Date: Sat, 25 Aug 2018 09:20:04 -0500
44
Subject: [PATCH 2/8] clang: add conda specific env var CONDA_BUILD_SYSROOT
@@ -9,10 +9,10 @@ Subject: [PATCH 2/8] clang: add conda specific env var CONDA_BUILD_SYSROOT
99
2 files changed, 10 insertions(+), 1 deletion(-)
1010

1111
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
12-
index bdbdad9362e1..eef06f2c0a59 100644
12+
index 93cddf742d52..00d0466a5de2 100644
1313
--- a/clang/lib/Driver/Driver.cpp
1414
+++ b/clang/lib/Driver/Driver.cpp
15-
@@ -1348,6 +1348,11 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
15+
@@ -1352,6 +1352,11 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
1616
CompilerPath = Split.second;
1717
}
1818
}
@@ -25,7 +25,7 @@ index bdbdad9362e1..eef06f2c0a59 100644
2525
SysRoot = A->getValue();
2626
if (const Arg *A = Args.getLastArg(options::OPT__dyld_prefix_EQ))
2727
diff --git a/clang/lib/Lex/InitHeaderSearch.cpp b/clang/lib/Lex/InitHeaderSearch.cpp
28-
index 41382d7cb3fc..3f2fab2b5bb9 100644
28+
index 2218db15013d..d05cfa38e4fb 100644
2929
--- a/clang/lib/Lex/InitHeaderSearch.cpp
3030
+++ b/clang/lib/Lex/InitHeaderSearch.cpp
3131
@@ -24,6 +24,7 @@
@@ -36,7 +36,7 @@ index 41382d7cb3fc..3f2fab2b5bb9 100644
3636
#include "llvm/Support/raw_ostream.h"
3737
#include "llvm/TargetParser/Triple.h"
3838
#include <optional>
39-
@@ -241,7 +242,10 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
39+
@@ -210,7 +211,10 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
4040
[[fallthrough]];
4141
default:
4242
// FIXME: temporary hack: hard-coded paths.

recipe/patches/0003-Fix-normalizeProgramName-s-handling-of-dots-outside-.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 8256e78c1bdcd778994807548f410404d5485c00 Mon Sep 17 00:00:00 2001
1+
From 3f82e5619383f7fda54c0281e93bcce1d20678fb Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Wed, 30 Aug 2017 20:01:49 +0100
44
Subject: [PATCH 3/8] Fix normalizeProgramName()'s handling of dots outside of
@@ -18,7 +18,7 @@ x86_64-apple-darwin13.4
1818
1 file changed, 22 insertions(+), 1 deletion(-)
1919

2020
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
21-
index 8dafc3d481c2..9b0010361dcc 100644
21+
index 388030592b48..f41635fc0021 100644
2222
--- a/clang/lib/Driver/ToolChain.cpp
2323
+++ b/clang/lib/Driver/ToolChain.cpp
2424
@@ -55,6 +55,7 @@ using namespace driver;
@@ -40,7 +40,7 @@ index 8dafc3d481c2..9b0010361dcc 100644
4040
+StringRef program_name_stem(StringRef path) {
4141
+ StringRef fname = llvm::sys::path::filename(path);
4242
+ size_t pos = StringRef::npos;
43-
+ if (fname.endswith_insensitive(".exe")) {
43+
+ if (fname.ends_with_insensitive(".exe")) {
4444
+ pos = fname.find_last_of('.');
4545
+ }
4646
+ if (pos == StringRef::npos)

recipe/patches/0004-Set-VERSION-in-osx-as-well.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 7b341a2fa1318de4d5e7b8276eb294e704e74a77 Mon Sep 17 00:00:00 2001
1+
From 1a27f84c79925f6ec21821c1e51556383642a64a Mon Sep 17 00:00:00 2001
22
From: Isuru Fernando <[email protected]>
33
Date: Sat, 27 Jul 2019 11:55:23 -0500
44
Subject: [PATCH 4/8] Set VERSION in osx as well
@@ -8,10 +8,10 @@ Subject: [PATCH 4/8] Set VERSION in osx as well
88
1 file changed, 5 insertions(+)
99

1010
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
11-
index 4f23065a2472..da8a9740fab0 100644
11+
index b5b6d2807d71..3faabda0ea2a 100644
1212
--- a/clang/tools/libclang/CMakeLists.txt
1313
+++ b/clang/tools/libclang/CMakeLists.txt
14-
@@ -172,6 +172,11 @@ if(ENABLE_SHARED)
14+
@@ -173,6 +173,11 @@ if(ENABLE_SHARED)
1515

1616
set_property(TARGET libclang APPEND_STRING PROPERTY
1717
LINK_FLAGS ${LIBCLANG_LINK_FLAGS})

recipe/patches/0005-Fix-crosscompiling-LLVM-tools.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ef7243e085ad067f7e5ad93ea080a8ec61cb69e9 Mon Sep 17 00:00:00 2001
1+
From e596167b3ff0ee9d6ab3e6a34d197272df1c82c2 Mon Sep 17 00:00:00 2001
22
From: Isuru Fernando <[email protected]>
33
Date: Tue, 11 May 2021 15:08:13 +0200
44
Subject: [PATCH 5/8] Fix crosscompiling LLVM tools
@@ -8,7 +8,7 @@ Subject: [PATCH 5/8] Fix crosscompiling LLVM tools
88
1 file changed, 10 insertions(+)
99

1010
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
11-
index f7936d72e088..758f517f4d36 100644
11+
index 5f2b7f064da4..e7b4fe212d97 100644
1212
--- a/clang/CMakeLists.txt
1313
+++ b/clang/CMakeLists.txt
1414
@@ -60,6 +60,16 @@ if(CLANG_BUILT_STANDALONE)

recipe/patches/0006-Only-error-on-undefined-TARGET_OS_OSX.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 151949fe6cc4930d480c0c7cdc27397b51575601 Mon Sep 17 00:00:00 2001
1+
From 8198ad10b33a39e70afac4f5e103ed1fb4242c38 Mon Sep 17 00:00:00 2001
22
From: "Uwe L. Korn" <[email protected]>
33
Date: Tue, 11 May 2021 15:09:51 +0200
44
Subject: [PATCH 6/8] Only error on undefined TARGET_OS_OSX
@@ -8,10 +8,10 @@ Subject: [PATCH 6/8] Only error on undefined TARGET_OS_OSX
88
1 file changed, 1 insertion(+), 1 deletion(-)
99

1010
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp
11-
index 65bd6c6a7eb3..3276f9948e8e 100644
11+
index fae8ad1a958a..9e7510d12dc4 100644
1212
--- a/clang/lib/Driver/ToolChains/Darwin.cpp
1313
+++ b/clang/lib/Driver/ToolChains/Darwin.cpp
14-
@@ -1136,7 +1136,7 @@ DarwinClang::DarwinClang(const Driver &D, const llvm::Triple &Triple,
14+
@@ -1149,7 +1149,7 @@ DarwinClang::DarwinClang(const Driver &D, const llvm::Triple &Triple,
1515

1616
void DarwinClang::addClangWarningOptions(ArgStringList &CC1Args) const {
1717
// Always error about undefined 'TARGET_OS_*' macros.

recipe/patches/0007-set-libclang-SOVERSION-unconditionally.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From f750bf6ea57c194e271925363489524f16178593 Mon Sep 17 00:00:00 2001
1+
From 664d3912fa7c4b93316df450929e7c0442f91fb7 Mon Sep 17 00:00:00 2001
22
From: "H. Vetinari" <[email protected]>
33
Date: Thu, 14 Apr 2022 11:57:00 +1100
44
Subject: [PATCH 7/8] set libclang SOVERSION unconditionally
@@ -9,7 +9,7 @@ and avoid creating libclang with full version suffix
99
1 file changed, 10 insertions(+), 6 deletions(-)
1010

1111
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
12-
index da8a9740fab0..dd4d43c56b43 100644
12+
index 3faabda0ea2a..53924bd65579 100644
1313
--- a/clang/tools/libclang/CMakeLists.txt
1414
+++ b/clang/tools/libclang/CMakeLists.txt
1515
@@ -9,10 +9,7 @@
@@ -24,7 +24,7 @@ index da8a9740fab0..dd4d43c56b43 100644
2424

2525
# TODO: harmonize usage of LIBCLANG_SOVERSION / LIBCLANG_LIBARY_VERSION
2626
# below; this was added under time-pressure to avoid reverting the
27-
@@ -199,10 +196,17 @@ if(ENABLE_SHARED)
27+
@@ -211,10 +208,17 @@ if(ENABLE_SHARED)
2828
# Ensure that libclang.so gets rebuilt when the linker script changes.
2929
set_property(SOURCE ARCMigrate.cpp APPEND PROPERTY
3030
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libclang.map)

recipe/patches/0008-Make-PIE-default-on-macOS-too.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 024ac6cc93022e9f63f8b8a9971b20110b96eeb0 Mon Sep 17 00:00:00 2001
1+
From a2d6babd5f4ecde654c1b1117c031f4915c4f36b Mon Sep 17 00:00:00 2001
22
From: Isuru Fernando <[email protected]>
33
Date: Thu, 28 Dec 2023 19:32:19 +0530
44
Subject: [PATCH 8/8] Make PIE default on macOS too.
@@ -9,10 +9,10 @@ This is the default for Linux from LLVM-15
99
1 file changed, 1 insertion(+), 1 deletion(-)
1010

1111
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp
12-
index 3276f9948e8e..509866f19052 100644
12+
index 9e7510d12dc4..6e62efd1fe42 100644
1313
--- a/clang/lib/Driver/ToolChains/Darwin.cpp
1414
+++ b/clang/lib/Driver/ToolChains/Darwin.cpp
15-
@@ -3017,7 +3017,7 @@ bool Darwin::SupportsEmbeddedBitcode() const {
15+
@@ -3127,7 +3127,7 @@ bool Darwin::SupportsEmbeddedBitcode() const {
1616

1717
bool MachO::isPICDefault() const { return true; }
1818

0 commit comments

Comments
 (0)