From 1c4f2792a8836bf4077441a0239dc591a003bf33 Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 5 May 2020 17:51:36 +0300 Subject: [PATCH] rust-1.43.0 ver. bump --- programming/language/rust/files/70163.patch | 54 +++++++++++++++++++++ programming/language/rust/pspec.xml | 11 ++++- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 programming/language/rust/files/70163.patch diff --git a/programming/language/rust/files/70163.patch b/programming/language/rust/files/70163.patch new file mode 100644 index 0000000000..fcdae604b6 --- /dev/null +++ b/programming/language/rust/files/70163.patch @@ -0,0 +1,54 @@ +From a94fa896cc92d5e0678376cf5aa8b64af0899732 Mon Sep 17 00:00:00 2001 +From: Nikita Popov +Date: Tue, 4 Feb 2020 20:35:50 +0100 +Subject: [PATCH 4/5] Fix timeTraceProfilerInitialize for LLVM 10 + +--- + src/rustllvm/PassWrapper.cpp | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp +index 90d24d20737db..9e8614e3b6d34 100644 +--- a/src/rustllvm/PassWrapper.cpp ++++ b/src/rustllvm/PassWrapper.cpp +@@ -67,7 +67,11 @@ extern "C" void LLVMInitializePasses() { + } + + extern "C" void LLVMTimeTraceProfilerInitialize() { +-#if LLVM_VERSION_GE(9, 0) ++#if LLVM_VERSION_GE(10, 0) ++ timeTraceProfilerInitialize( ++ /* TimeTraceGranularity */ 0, ++ /* ProcName */ "rustc"); ++#elif LLVM_VERSION_GE(9, 0) + timeTraceProfilerInitialize(); + #endif + } + +From 497f879b1e24c369362bcd821959ffabc50a8a31 Mon Sep 17 00:00:00 2001 +From: Nikita Popov +Date: Mon, 2 Mar 2020 22:37:55 +0100 +Subject: [PATCH 5/5] Update CreateMemSet() usage for LLVM 10 + +--- + src/rustllvm/RustWrapper.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp +index 25cfee3373dc4..799adb418822d 100644 +--- a/src/rustllvm/RustWrapper.cpp ++++ b/src/rustllvm/RustWrapper.cpp +@@ -1333,8 +1333,13 @@ extern "C" LLVMValueRef LLVMRustBuildMemSet(LLVMBuilderRef B, + LLVMValueRef Dst, unsigned DstAlign, + LLVMValueRef Val, + LLVMValueRef Size, bool IsVolatile) { ++#if LLVM_VERSION_GE(10, 0) ++ return wrap(unwrap(B)->CreateMemSet( ++ unwrap(Dst), unwrap(Val), unwrap(Size), MaybeAlign(DstAlign), IsVolatile)); ++#else + return wrap(unwrap(B)->CreateMemSet( + unwrap(Dst), unwrap(Val), unwrap(Size), DstAlign, IsVolatile)); ++#endif + } + + extern "C" LLVMValueRef diff --git a/programming/language/rust/pspec.xml b/programming/language/rust/pspec.xml index d5061418f7..3f3000b7e8 100755 --- a/programming/language/rust/pspec.xml +++ b/programming/language/rust/pspec.xml @@ -12,7 +12,7 @@ app Systems programming language focused on safety, speed and concurrency Systems programming language focused on safety, speed and concurrency - https://static.rust-lang.org/dist/rustc-1.42.0-src.tar.gz + https://static.rust-lang.org/dist/rustc-1.43.0-src.tar.gz bootstrap-config.toml @@ -34,7 +34,7 @@ libffi-devel - + 70163.patch @@ -61,6 +61,13 @@ + + 2020-05-05 + 1.43.0 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + 2020-03-28 1.42.0