--- /dev/null
+# Don't let configure clobber our debuginfo choice for stable releases.
+
+diff --git a/configure b/configure
+index 505767cede55..4074a1e2f765 100755
+--- a/configure
++++ b/configure
+@@ -753,8 +753,8 @@ case "$CFG_RELEASE_CHANNEL" in
+ *-pc-windows-gnu)
+ ;;
+ *)
+- CFG_ENABLE_DEBUGINFO_LINES=1
+- CFG_ENABLE_DEBUGINFO_ONLY_STD=1
++ # CFG_ENABLE_DEBUGINFO_LINES=1
++ # CFG_ENABLE_DEBUGINFO_ONLY_STD=1
+ ;;
+ esac
+
+@@ -765,8 +765,8 @@ case "$CFG_RELEASE_CHANNEL" in
+ *-pc-windows-gnu)
+ ;;
+ *)
+- CFG_ENABLE_DEBUGINFO_LINES=1
+- CFG_ENABLE_DEBUGINFO_ONLY_STD=1
++ # CFG_ENABLE_DEBUGINFO_LINES=1
++ # CFG_ENABLE_DEBUGINFO_ONLY_STD=1
+ ;;
+ esac
+ ;;
# Source1-md5: 98e8f479515969123b4c203191104a54
Source2: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-i686-unknown-linux-gnu.tar.gz
# Source2-md5: 2d5de850c32aa8d40c8c21abacf749f8
+Patch0: rust-1.16.0-configure-no-override.patch
URL: https://www.rust-lang.org/
BuildRequires: cmake
BuildRequires: curl
%prep
%setup -q -n %{rustc_package}
+%patch0 -p1
+
%if %{with bootstrap}
%ifarch %{x8664}
tar xf %{SOURCE1}
src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs \
src/test/run-pass/allocator-default.rs
-# Fedora's LLVM doesn't support any mips targets -- see "llc -version".
-# Fixed properly by Rust PR36344, which should be released in 1.13.
-sed -i -e '/target=mips/,+1s/^/# unsupported /' \
- src/test/run-make/atomic-lock-free/Makefile
-
%build
%configure \
--disable-option-checking \
--build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \
--enable-local-rust --local-rust-root=%{local_rust_root} \
--llvm-root=%{_prefix} --disable-codegen-tests \
+ --enable-llvm-link-shared \
--disable-jemalloc \
--disable-rpath \
--enable-debuginfo \