Compare commits

...

15 Commits

Author SHA1 Message Date
David Abdurachmanov ceca7985d2
Try to enable rust-analyzer for riscv64
This is the 2nd attempt.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-01-16 10:46:21 +02:00
David Abdurachmanov 4a3b701b39
Merge remote-tracking branch 'up/f37' into f37-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-01-13 08:57:07 +02:00
David Abdurachmanov 68726fa32d
Revert "Enable rust-analyzer for riscv64"
This reverts commit 96dc0c89e7.
2023-01-13 08:55:50 +02:00
David Abdurachmanov f4046803f9
Revert "Fix patch syntax error"
This reverts commit d2549134a9.
2023-01-13 08:55:33 +02:00
David Abdurachmanov d2549134a9
Fix patch syntax error
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-01-11 17:11:22 +00:00
David Abdurachmanov 96dc0c89e7
Enable rust-analyzer for riscv64
This is a test. Might not work. Testing to provide feedback on GitHub:

https://github.com/rust-lang/rust/pull/75103

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-01-11 16:35:44 +00:00
David Abdurachmanov 77bce84d63
Merge remote-tracking branch 'up/f37' into f37-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-01-10 06:28:09 +00:00
David Abdurachmanov 6bdc0ace9d
Bump release
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-29 07:21:37 +02:00
David Abdurachmanov ae25172117 Revert "Revert 263edd43c5255084292329423c61a9d69715ebfa"
This reverts commit f67044a228.
2022-11-29 07:20:25 +02:00
David Abdurachmanov 7399d42c21
Do not package rust-analyzer on riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-28 10:31:15 +02:00
David Abdurachmanov f67044a228
Revert 263edd43c5255084292329423c61a9d69715ebfa
Based on:
https://github.com/rust-lang/rust/issues/102155

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-28 10:29:10 +02:00
David Abdurachmanov 05aaef4716
Update changelog entry
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-28 10:27:02 +02:00
David Abdurachmanov 4a32e1dd76
Revert "Bootstrap"
This reverts commit a08b5e5e1b.
2022-11-28 10:04:13 +02:00
David Abdurachmanov a08b5e5e1b
Bootstrap
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-04 17:10:07 +02:00
David Abdurachmanov 7089aa2bdb
Enable riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-04 12:30:54 +02:00
2 changed files with 35 additions and 3 deletions

View File

@ -0,0 +1,17 @@
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 12585e80e..360b7b6c7 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -1086,12 +1086,6 @@ impl Step for RustAnalyzer {
let compiler = self.compiler;
let target = self.target;
- if target.contains("riscv64") {
- // riscv64 currently has an LLVM bug that makes rust-analyzer unable
- // to build. See #74813 for details.
- return None;
- }
-
let rust_analyzer = builder
.ensure(tool::RustAnalyzer { compiler, target })
.expect("rust-analyzer always builds");

View File

@ -1,6 +1,6 @@
# Only x86_64 and i686 are Tier 1 platforms at this time.
# https://doc.rust-lang.org/nightly/rustc/platform-support.html
%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x
%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x riscv64
# The channel can be stable, beta, or nightly
%{!?channel: %global channel stable}
@ -76,15 +76,19 @@
%endif
# LLDB isn't available everywhere...
%ifnarch riscv64
%if 0%{?rhel} && 0%{?rhel} < 8
%bcond_with lldb
%else
%bcond_without lldb
%endif
%else
%bcond_with lldb
%endif
Name: rust
Version: 1.66.1
Release: 1%{?dist}
Release: 1.1.riscv64%{?dist}
Summary: The Rust Programming Language
License: (ASL 2.0 or MIT) and (BSD and MIT)
# ^ written as: (rust itself) and (bundled libraries)
@ -131,6 +135,8 @@ Patch101: rustc-1.65.0-disable-http2.patch
# (affects RHEL6 kernels when building for RHEL7)
Patch102: rustc-1.65.0-no-default-pie.patch
# Enable rust-analyzer on riscv64
Patch103: rust-enable-ra-for-riscv64.patch
# Get the Rust triple for any arch.
%{lua: function rust_triple(arch)
@ -606,6 +612,8 @@ rm -rf vendor/libnghttp2-sys/
%patch102 -p1
%endif
%patch103 -p1
# Use our explicit python3 first
sed -i.try-python -e '/^try python3 /i try "%{__python3}" "$@"' ./configure
@ -676,7 +684,7 @@ find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+'
%build
%{export_rust_env}
%ifarch %{arm} %{ix86}
%ifarch %{arm} %{ix86} riscv64
# full debuginfo is exhausting memory; just do libstd for now
# https://github.com/rust-lang/rust/issues/45854
%if 0%{?rhel} && 0%{?rhel} < 8
@ -1056,6 +1064,13 @@ end}
%changelog
* Mon Jan 16 2022 David Abdurachmanov <davidlt@rivosinc.com> - 1.66.1-1.1.riscv64
- Enable riscv-analyzer for riscv64
* Fri Jan 13 2022 David Abdurachmanov <davidlt@rivosinc.com> - 1.66.1-1.0.riscv64
- Do not package rust-analyzer on riscv64
- Enable riscv64
* Tue Jan 10 2023 Josh Stone <jistone@redhat.com> - 1.66.1-1
- Update to 1.66.1.
- Security fix for CVE-2022-46176