-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update LLVM to version 14.0.6 (#8201)
* Update llvm to 14.0.6 * set gcc-toolchain for llvm compiler definition * applu llvmlite patch for llvm14 * update py3-dxr.spec patched for llvm14 * use latest llvmlite commit * update rust 1.61.0 and cleanup llvmlite patches * rust patch
- Loading branch information
Showing
12 changed files
with
3,178 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
Requires: llvm | ||
Patch0: py3-llvmlite-fpic-flag | ||
Patch1: py3-llvmlite-version | ||
Patch3: py3-llvmlite-removeMethod | ||
Patch0: py3-llvmlite-14 | ||
|
||
%define source0 git+https://github.com/numba/llvmlite?obj=release0.35/v%{realversion}&export=llvmlite-%{realversion}&output=/source.tar.gz | ||
%define source0 git+https://github.com/numba/llvmlite?obj=main/%{realversion}&export=llvmlite-%{realversion}&output=/source.tar.gz | ||
%define PipPreBuild export LLVM_CONFIG=${LLVM_ROOT}/bin/llvm-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs | ||
index ac758c1..11abfac 100644 | ||
--- a/compiler/rustc_llvm/build.rs | ||
+++ b/compiler/rustc_llvm/build.rs | ||
@@ -347,18 +347,18 @@ fn main() { | ||
|
||
// C++ runtime library | ||
if !target.contains("msvc") { | ||
- if let Some(s) = llvm_static_stdcpp { | ||
- assert!(!cxxflags.contains("stdlib=libc++")); | ||
- let path = PathBuf::from(s); | ||
- println!("cargo:rustc-link-search=native={}", path.parent().unwrap().display()); | ||
- if target.contains("windows") { | ||
- println!("cargo:rustc-link-lib=static:-bundle={}", stdcppname); | ||
- } else { | ||
- println!("cargo:rustc-link-lib=static={}", stdcppname); | ||
- } | ||
- } else if cxxflags.contains("stdlib=libc++") { | ||
- println!("cargo:rustc-link-lib=c++"); | ||
- } else { | ||
+ if let Some(_s) = llvm_static_stdcpp { | ||
+ // assert!(!cxxflags.contains("stdlib=libc++")); | ||
+ // let path = PathBuf::from(s); | ||
+ // println!("cargo:rustc-link-search=native={}", path.parent().unwrap().display()); | ||
+ // if target.contains("windows") { | ||
+ // println!("cargo:rustc-link-lib=static:-bundle={}", stdcppname); | ||
+ // } else { | ||
+ // println!("cargo:rustc-link-lib=static={}", stdcppname); | ||
+ // } | ||
+ //} else if cxxflags.contains("stdlib=libc++") { | ||
+ // println!("cargo:rustc-link-lib=c++"); | ||
+ //} else { | ||
println!("cargo:rustc-link-lib={}", stdcppname); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters