Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang 16.0.0.rc1 #198

Merged
merged 36 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2e77ea2
updated v15.0.0
regro-cf-autotick-bot Sep 6, 2022
3ca6aad
MNT: Re-rendered with conda-build 3.22.0, conda-smithy 3.21.1, and co…
regro-cf-autotick-bot Sep 6, 2022
08eedb4
Merge remote-tracking branch 'upstream/rc' into 15.0.0_hd66069
h-vetinari Sep 6, 2022
0b6e049
remove rc-channel sources & targets
h-vetinari Sep 6, 2022
022ebee
MNT: Re-rendered with conda-build 3.22.0, conda-smithy 3.21.1, and co…
h-vetinari Sep 6, 2022
7d76d86
clangdev v15.0.0 (#182)
github-actions[bot] Sep 22, 2022
586e8f9
clangdev v15.0.1 (#184)
regro-cf-autotick-bot Sep 23, 2022
e9eff3a
updated v15.0.2
regro-cf-autotick-bot Oct 4, 2022
23c8823
MNT: Re-rendered with conda-build 3.22.0, conda-smithy 3.21.2, and co…
regro-cf-autotick-bot Oct 4, 2022
ceeab9a
Merge pull request #185 from regro-cf-autotick-bot/15.0.2_h541d1d
xhochy Oct 12, 2022
483b728
updated v15.0.3
regro-cf-autotick-bot Oct 18, 2022
88c9794
clangdev v15.0.3 (#187)
github-actions[bot] Oct 22, 2022
089e1ac
[ci skip] added user JohanMabille
conda-forge-admin Oct 26, 2022
3442808
Merge pull request #190 from conda-forge-linter/conda_forge_admin_189
isuruf Oct 26, 2022
142f80e
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] Nov 2, 2022
831d321
updated v15.0.4
regro-cf-autotick-bot Nov 4, 2022
2110a5e
MNT: Re-rendered with conda-build 3.22.0, conda-smithy 3.21.3, and co…
regro-cf-autotick-bot Nov 4, 2022
9a23fd1
Merge pull request #192 from regro-cf-autotick-bot/15.0.4_hc5e0d3
xhochy Nov 5, 2022
8668c87
updated v15.0.5
regro-cf-autotick-bot Nov 16, 2022
6241570
clangdev v15.0.5 (#193)
github-actions[bot] Nov 17, 2022
e7e17d3
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration DotConda
conda-forge-curator[bot] Nov 17, 2022
35ee019
updated v15.0.6
regro-cf-autotick-bot Nov 29, 2022
b6cf712
clangdev v15.0.6 (#194)
github-actions[bot] Nov 30, 2022
5e1971f
updated v15.0.7
regro-cf-autotick-bot Jan 12, 2023
cc63a23
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.22.1, and co…
regro-cf-autotick-bot Jan 12, 2023
3e7154f
clangdev v15.0.7 (#197)
github-actions[bot] Jan 13, 2023
b0b29fe
Merge remote-tracking branch 'upstream/main' into rc
h-vetinari Feb 1, 2023
3fb69fa
Revert "remove rc-channel sources & targets"
h-vetinari Feb 1, 2023
2eff6dd
MNT: Re-rendered with conda-build 3.23.3, conda-smithy 3.22.1, and co…
h-vetinari Feb 1, 2023
1d6cb6a
remove obsolete patches
h-vetinari Feb 1, 2023
88799c8
bump to 16.0.0.rc1
h-vetinari Feb 1, 2023
ac518af
rebase patches to 16.0.0-rc1
h-vetinari Feb 1, 2023
79fd454
adapt to switch from llvm::optional to std::optional
h-vetinari Feb 1, 2023
9a8ed7c
include path now only with major version
h-vetinari Feb 1, 2023
7a7f1a6
update patch for libclang SOVERSION; variable renamed upstream
h-vetinari Feb 2, 2023
3ec92c1
adapt LIBCLANG_SOVERSION_ARG to work on windows
h-vetinari Feb 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions .ci_support/linux_64_variantdefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '10'
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libclang_soversion:
- '13'
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- linux-64
variant:
Expand Down
5 changes: 1 addition & 4 deletions .ci_support/linux_aarch64_variantdefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '10'
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libclang_soversion:
- '13'
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- linux-aarch64
variant:
Expand Down
5 changes: 1 addition & 4 deletions .ci_support/linux_ppc64le_variantdefault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '10'
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libclang_soversion:
- '13'
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- linux-ppc64le
variant:
Expand Down
3 changes: 0 additions & 3 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ cxx_compiler:
- vs2019
libclang_soversion:
- '13'
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- win-64
variant:
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "15.0.0.rc3" %}
{% set version = "16.0.0.rc1" %}
{% set major_version = version.split(".")[0] %}
{% set build_number = 0 %}

Expand All @@ -17,7 +17,7 @@ package:

source:
- url: https://github.com/llvm/llvm-project/releases/download/llvmorg-{{ version.replace(".rc", "-rc") }}/llvm-project-{{ version.replace(".rc", "rc") }}.src.tar.xz
sha256: 36b3c3cb2baa598192f11a1e00634401a35447b83a2bc12289bb2dcc3cc73520
sha256: 8399db003b223ce33e3d7a5ee9df8dc3574cedffa5d9be4783660643f8402900
patches:
- patches/0001-Find-conda-gcc-installation.patch
- patches/0002-Fix-sysroot-detection-for-linux.patch
Expand All @@ -29,6 +29,7 @@ source:
# Only enable it for TARGET_OS_OSX.
- patches/0007-Only-error-on-undefined-TARGET_OS_OSX.patch # [osx and x86_64]
- patches/0008-set-libclang-SOVERSION-unconditionally.patch
# check out git history before LLVM 16 for these patches
# - patches/amd-roc-2.7.0.diff # [variant != "hcc"]
# - patches/amd-roc-hcc-2.7.0.diff # [variant == "hcc"]
# name folder for easier deletion; we do the equivalent of downloading
Expand Down Expand Up @@ -152,7 +153,7 @@ outputs:
track_features:
- hcc # [variant=="hcc"]
string: {{ variant }}_h{{ PKG_HASH }}_{{ build_number }}
run_exports: # [unix]
run_exports: # [unix]
- {{ pin_subpackage("libclang-cpp" + minor_aware_ext, max_pin="x.x") }} # [unix]
requirements:
build:
Expand Down Expand Up @@ -298,8 +299,8 @@ outputs:
- test -f "$PREFIX/lib/libclang-cpp.so.{{ minor_aware_ext }}" # [linux]
- test ! -f "$PREFIX/lib/libclang-cpp.dylib" # [osx]
- test -f "$PREFIX/lib/libclang-cpp.{{ minor_aware_ext }}.dylib" # [osx]
- test -f "$PREFIX/lib/clang/{{ '.'.join(version.split('.')[:3]) }}/include/stdatomic.h" # [unix]
- if not exist %LIBRARY_LIB%\\clang\\{{ '.'.join(version.split('.')[:3]) }}\\include\\stdatomic.h exit 1 # [win]
- test -f "$PREFIX/lib/clang/{{ version.split('.')[0] }}/include/stdatomic.h" # [unix]
- if not exist %LIBRARY_LIB%\\clang\\{{ version.split('.')[0] }}\\include\\stdatomic.h exit 1 # [win]

- name: clang
script: install_clang_symlinks.sh # [unix]
Expand Down Expand Up @@ -489,6 +490,7 @@ about:

extra:
recipe-maintainers:
- JohanMabille
- inducer
- isuruf
- jakirkham
Expand Down
12 changes: 6 additions & 6 deletions recipe/patches/0001-Find-conda-gcc-installation.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From d5bac3f57633587b3d055ced43cd3fc6d6ebd162 Mon Sep 17 00:00:00 2001
From 19132c83dc48e903a5d989f2177d49007f31ea4d Mon Sep 17 00:00:00 2001
From: Isuru Fernando <isuruf@gmail.com>
Date: Mon, 8 Apr 2019 16:20:03 -0500
Subject: [PATCH 1/8] Find conda gcc installation
Expand All @@ -8,10 +8,10 @@ Subject: [PATCH 1/8] Find conda gcc installation
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index f203cae1d329..c750e6844ca0 100644
index 4f23403166..cd3c03efdd 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2188,7 +2188,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
@@ -2218,7 +2218,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
static const char *const AArch64LibDirs[] = {"/lib64", "/lib"};
static const char *const AArch64Triples[] = {
"aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-redhat-linux",
Expand All @@ -20,7 +20,7 @@ index f203cae1d329..c750e6844ca0 100644
static const char *const AArch64beLibDirs[] = {"/lib"};
static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu",
"aarch64_be-linux-gnu"};
@@ -2218,7 +2218,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
@@ -2248,7 +2248,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
"x86_64-redhat-linux", "x86_64-suse-linux",
"x86_64-manbo-linux-gnu", "x86_64-linux-gnu",
"x86_64-slackware-linux", "x86_64-unknown-linux",
Expand All @@ -30,7 +30,7 @@ index f203cae1d329..c750e6844ca0 100644
static const char *const X32Triples[] = {"x86_64-linux-gnux32",
"x86_64-pc-linux-gnux32"};
static const char *const X32LibDirs[] = {"/libx32", "/lib"};
@@ -2281,7 +2282,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
@@ -2315,7 +2316,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
static const char *const PPC64LETriples[] = {
"powerpc64le-linux-gnu", "powerpc64le-unknown-linux-gnu",
"powerpc64le-none-linux-gnu", "powerpc64le-suse-linux",
Expand All @@ -40,5 +40,5 @@ index f203cae1d329..c750e6844ca0 100644
static const char *const RISCV32LibDirs[] = {"/lib32", "/lib"};
static const char *const RISCV32Triples[] = {"riscv32-unknown-linux-gnu",
--
2.37.0.windows.1
2.38.1.windows.1

8 changes: 4 additions & 4 deletions recipe/patches/0002-Fix-sysroot-detection-for-linux.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From b74e506cc8724c5a5a8f33ab3dcb135f850721e2 Mon Sep 17 00:00:00 2001
From c66404de3a5fb2ae88e836e995ebcf13cd38f1e6 Mon Sep 17 00:00:00 2001
From: Isuru Fernando <isuruf@gmail.com>
Date: Mon, 8 Apr 2019 16:32:17 -0500
Subject: [PATCH 2/8] Fix sysroot detection for linux
Expand All @@ -8,10 +8,10 @@ Subject: [PATCH 2/8] Fix sysroot detection for linux
1 file changed, 8 insertions(+)

diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index ceb1a982c3a4..d6f62ec0acd6 100644
index c6fb290ffd..fcacc1dcbd 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -394,6 +394,14 @@ std::string Linux::computeSysRoot() const {
@@ -388,6 +388,14 @@ std::string Linux::computeSysRoot() const {
if (getVFS().exists(Path))
return Path;

Expand All @@ -27,5 +27,5 @@ index ceb1a982c3a4..d6f62ec0acd6 100644

if (getVFS().exists(Path))
--
2.37.0.windows.1
2.38.1.windows.1

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From e1712797c251d63724934dbb790fee7af541c72d Mon Sep 17 00:00:00 2001
From c2c32b2cd1c88f88d150ff502d5f1e0fd4d99512 Mon Sep 17 00:00:00 2001
From: Nehal J Wani <nehaljw.kkd1@gmail.com>
Date: Sat, 25 Aug 2018 09:20:04 -0500
Subject: [PATCH 3/8] clang: add conda specific env var CONDA_BUILD_SYSROOT
Expand All @@ -9,10 +9,10 @@ Subject: [PATCH 3/8] clang: add conda specific env var CONDA_BUILD_SYSROOT
2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 3f29afd35971..94b4c6459478 100644
index 661d9977fb..f5a75515ed 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1270,8 +1270,13 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
@@ -1327,8 +1327,13 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
CompilerPath = Split.second;
}
}
Expand All @@ -29,7 +29,7 @@ index 3f29afd35971..94b4c6459478 100644
DyldPrefix = A->getValue();

diff --git a/clang/lib/Lex/InitHeaderSearch.cpp b/clang/lib/Lex/InitHeaderSearch.cpp
index 158b5667151f..a3ab5f8f18b2 100644
index d446556571..8354362d1f 100644
--- a/clang/lib/Lex/InitHeaderSearch.cpp
+++ b/clang/lib/Lex/InitHeaderSearch.cpp
@@ -25,6 +25,7 @@
Expand All @@ -38,20 +38,20 @@ index 158b5667151f..a3ab5f8f18b2 100644
#include "llvm/Support/Path.h"
+#include "llvm/Support/Process.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>

using namespace clang;
@@ -249,7 +250,10 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
LLVM_FALLTHROUGH;
@@ -243,7 +244,10 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
[[fallthrough]];
default:
// FIXME: temporary hack: hard-coded paths.
- AddPath("/usr/local/include", System, false);
+ Optional<std::string> CondaBuildSysrootValue =
+ llvm::sys::Process::GetEnv("CONDA_BUILD_SYSROOT");
+ if (!CondaBuildSysrootValue.hasValue())
+ if (!CondaBuildSysrootValue.has_value())
+ AddPath("/usr/local/include", System, false);
break;
}
}
--
2.37.0.windows.1
2.38.1.windows.1

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 71557667efee4bbead3b681312a0dacda2a581b7 Mon Sep 17 00:00:00 2001
From d4dffafebae289d10cffcdd8cb41956d53e2fadc Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Wed, 30 Aug 2017 20:01:49 +0100
Subject: [PATCH 4/8] Fix normalizeProgramName()'s handling of dots outside of
Expand All @@ -18,18 +18,18 @@ x86_64-apple-darwin13.4
1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index 7a4319ea680f..97b1a8c6341e 100644
index bc70205a6c..3a7948509a 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -50,6 +50,7 @@ using namespace driver;
@@ -51,6 +51,7 @@ using namespace driver;
using namespace tools;
using namespace llvm;
using namespace llvm::opt;
+using namespace llvm::sys::path;

static llvm::opt::Arg *GetRTTIArgument(const ArgList &Args) {
return Args.getLastArg(options::OPT_mkernel, options::OPT_fapple_kext,
@@ -195,10 +196,30 @@ static const DriverSuffix *FindDriverSuffix(StringRef ProgName, size_t &Pos) {
@@ -223,10 +224,30 @@ static const DriverSuffix *FindDriverSuffix(StringRef ProgName, size_t &Pos) {
return nullptr;
}

Expand All @@ -56,11 +56,11 @@ index 7a4319ea680f..97b1a8c6341e 100644
/// Normalize the program name from argv[0] by stripping the file extension if
/// present and lower-casing the string on Windows.
static std::string normalizeProgramName(llvm::StringRef Argv0) {
- std::string ProgName = std::string(llvm::sys::path::stem(Argv0));
- std::string ProgName = std::string(llvm::sys::path::filename(Argv0));
+ std::string ProgName = std::string(program_name_stem(Argv0));
if (is_style_windows(llvm::sys::path::Style::native)) {
// Transform to lowercase for case insensitive file systems.
std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(),
--
2.37.0.windows.1
2.38.1.windows.1

Loading