diff options
author | Michael Scheidell <scheidell@FreeBSD.org> | 2012-04-07 16:22:23 +0000 |
---|---|---|
committer | Michael Scheidell <scheidell@FreeBSD.org> | 2012-04-07 16:22:23 +0000 |
commit | c144b0fb1c9755e5e65c7c44c6f9ebfb576ef375 (patch) | |
tree | 11e262899dffddd938de99e69a4f0c6c4be3a5f9 /lang/rust/files | |
parent | This one is a routine bugfix / new functionality update: (diff) |
- Update to 0.2
- The bootstrap compiler needs "cc" to link objects.
PR: ports/166551
Submitted by: Jyun-Yan You <jyyou@cs.nctu.edu.tw> (maintainer)
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=294335
Diffstat (limited to 'lang/rust/files')
-rw-r--r-- | lang/rust/files/patch-configure | 40 | ||||
-rw-r--r-- | lang/rust/files/patch-mk__rustllvm.mk | 11 | ||||
-rw-r--r-- | lang/rust/files/patch-mk_platform.mk | 23 | ||||
-rw-r--r-- | lang/rust/files/patch-src_cargo_cargo.rs | 12 | ||||
-rw-r--r-- | lang/rust/files/patch-src_libcore_cmath.rs | 6 | ||||
-rw-r--r-- | lang/rust/files/patch-src_libcore_f32.rs | 12 | ||||
-rw-r--r-- | lang/rust/files/patch-src_rt_rust__unwind.h | 17 |
7 files changed, 25 insertions, 96 deletions
diff --git a/lang/rust/files/patch-configure b/lang/rust/files/patch-configure deleted file mode 100644 index 6dfa1b14c2cd..000000000000 --- a/lang/rust/files/patch-configure +++ /dev/null @@ -1,40 +0,0 @@ ---- ./configure.orig 2012-01-26 10:47:57.178803535 +0800 -+++ ./configure 2012-01-26 10:48:24.324805426 +0800 -@@ -340,7 +340,8 @@ - CFG_CLANG_VERSION=$("$CFG_CLANG" \ - --version \ - | grep version \ -- | cut -d ' ' -f 3) -+ | sed 's/.*\(version .*\)/\1/' \ -+ | cut -d ' ' -f 2) - - case $CFG_CLANG_VERSION in - (3.0svn | 3.0 | 3.1) -@@ -534,14 +535,23 @@ - # Disable unused LLVM features - LLVM_OPTS="$LLVM_DBG_OPTS --disable-docs --disable-jit --enable-bindings=none --disable-threads --disable-pthreads" - -- LLVM_CXX_32="g++ -m32" -- LLVM_CC_32="gcc -m32" -+ if [ "$CFG_C_COMPILER" = "clang" ] -+ then -+ LLVM_CXX_32="clang++ -m32" -+ LLVM_CC_32="clang -m32" -+ LLVM_CXX_64="clang++" -+ LLVM_CC_64="clang" -+ else -+ LLVM_CXX_32="g++ -m32" -+ LLVM_CC_32="gcc -m32" -+ LLVM_CXX_64="g++" -+ LLVM_CC_64="gcc" -+ fi -+ - LLVM_CFLAGS_32="-m32" - LLVM_CXXFLAGS_32="-m32" - LLVM_LDFLAGS_32="-m32" - -- LLVM_CXX_64="g++" -- LLVM_CC_64="gcc" - LLVM_CFLAGS_64="" - LLVM_CXXFLAGS_64="" - LLVM_LDFLAGS_64="" diff --git a/lang/rust/files/patch-mk__rustllvm.mk b/lang/rust/files/patch-mk__rustllvm.mk deleted file mode 100644 index 8a83256a55ad..000000000000 --- a/lang/rust/files/patch-mk__rustllvm.mk +++ /dev/null @@ -1,11 +0,0 @@ ---- ./mk/rustllvm.mk.orig 2012-01-21 05:09:09.000000000 +0800 -+++ ./mk/rustllvm.mk 2012-01-26 10:41:49.661804374 +0800 -@@ -37,7 +37,7 @@ - - rustllvm/$(1)/%.o: rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1)) - @$$(call E, compile: $$@) -- $$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(LLVM_CXXFLAGS_$(1)) $$(RUSTLLVM_INCS_$(1))) $$< -+ $$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(subst -I, -iquote , $$(LLVM_CXXFLAGS_$(1))) $$(RUSTLLVM_INCS_$(1))) $$< - endef - - # Instantiate template for all stages diff --git a/lang/rust/files/patch-mk_platform.mk b/lang/rust/files/patch-mk_platform.mk index 0955f6b8fed1..7d56a0b99fac 100644 --- a/lang/rust/files/patch-mk_platform.mk +++ b/lang/rust/files/patch-mk_platform.mk @@ -1,11 +1,20 @@ ---- mk/platform.mk.orig 2012-01-22 08:59:58.097803422 +0800 -+++ mk/platform.mk 2012-01-22 04:45:22.124872578 +0800 -@@ -188,7 +188,7 @@ - CC=clang - CXX=clang++ - CPP=cpp +--- mk/platform.mk.orig 2012-04-05 22:34:59.678608449 +0800 ++++ mk/platform.mk 2012-04-05 22:35:13.749110633 +0800 +@@ -213,7 +213,7 @@ + ifeq ($(origin CPP),default) + CPP=cpp + endif - CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g -+ CFG_GCCISH_CFLAGS += -Wall -Werror -Wno-c++11-compat -fno-rtti -g ++ CFG_GCCISH_CFLAGS += -Wall -fno-rtti -g + CFG_GCCISH_LINK_FLAGS += -g + CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \ + -MM $(2) +@@ -244,7 +244,7 @@ + ifeq ($(origin CPP),default) + CPP=cpp + endif +- CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g ++ CFG_GCCISH_CFLAGS += -Wall -fno-rtti -g CFG_GCCISH_LINK_FLAGS += -g CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \ -MM $(2) diff --git a/lang/rust/files/patch-src_cargo_cargo.rs b/lang/rust/files/patch-src_cargo_cargo.rs deleted file mode 100644 index 196557e4d126..000000000000 --- a/lang/rust/files/patch-src_cargo_cargo.rs +++ /dev/null @@ -1,12 +0,0 @@ ---- src/cargo/cargo.rs.orig 2012-01-22 03:39:41.002804510 +0800 -+++ src/cargo/cargo.rs 2012-01-22 09:19:29.018803328 +0800 -@@ -389,7 +389,8 @@ - let exec_suffix = os::exec_suffix(); - for ct: str in new { - if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) || -- (exec_suffix == "" && !str::starts_with(ct, "./lib")) { -+ (exec_suffix == "" && !str::starts_with(fs::basename(ct), -+ "lib")) { - #debug(" bin: %s", ct); - // FIXME: need libstd fs::copy or something - run::run_program("cp", [ct, c.bindir]); diff --git a/lang/rust/files/patch-src_libcore_cmath.rs b/lang/rust/files/patch-src_libcore_cmath.rs index 1756e7679774..801bd79e0b00 100644 --- a/lang/rust/files/patch-src_libcore_cmath.rs +++ b/lang/rust/files/patch-src_libcore_cmath.rs @@ -1,6 +1,6 @@ ---- src/libcore/cmath.rs.orig 2012-02-02 09:08:04.690802969 +0800 -+++ src/libcore/cmath.rs 2012-02-02 09:12:37.705978161 +0800 -@@ -161,7 +161,6 @@ +--- src/libcore/cmath.rs.orig 2012-04-01 10:40:10.385607179 +0800 ++++ src/libcore/cmath.rs 2012-04-01 10:40:34.370606102 +0800 +@@ -164,7 +164,6 @@ #[link_name="sqrtf"] pure fn sqrt(n: c_float) -> c_float; #[link_name="tanf"] pure fn tan(n: c_float) -> c_float; #[link_name="tanhf"] pure fn tanh(n: c_float) -> c_float; diff --git a/lang/rust/files/patch-src_libcore_f32.rs b/lang/rust/files/patch-src_libcore_f32.rs index 8be7ef7cc9fa..46380a843642 100644 --- a/lang/rust/files/patch-src_libcore_f32.rs +++ b/lang/rust/files/patch-src_libcore_f32.rs @@ -1,15 +1,15 @@ ---- src/libcore/f32.rs.orig 2012-02-02 09:20:38.079803515 +0800 -+++ src/libcore/f32.rs 2012-02-02 09:20:53.241930085 +0800 -@@ -9,6 +9,8 @@ +--- src/libcore/f32.rs.orig 2012-04-01 10:40:20.915606509 +0800 ++++ src/libcore/f32.rs 2012-04-01 10:43:43.847606825 +0800 +@@ -5,6 +5,8 @@ import cmath::c_float::*; import cmath::c_float_targ_consts::*; +import cmath::c_double; + - type t = f32; + // FIXME find out why these have to be exported explicitly - // These are not defined inside consts:: for consistency with -@@ -247,6 +249,10 @@ + export add, sub, mul, div, rem, lt, le, gt, eq, eq, ne; +@@ -176,6 +178,10 @@ ret ln(n) / consts::ln_2; } diff --git a/lang/rust/files/patch-src_rt_rust__unwind.h b/lang/rust/files/patch-src_rt_rust__unwind.h deleted file mode 100644 index 1d3a1d38a804..000000000000 --- a/lang/rust/files/patch-src_rt_rust__unwind.h +++ /dev/null @@ -1,17 +0,0 @@ ---- src/rt/rust_unwind.h.orig 2012-01-22 08:58:11.386020911 +0800 -+++ src/rt/rust_unwind.h 2012-01-22 04:37:29.745804340 +0800 -@@ -17,6 +17,8 @@ - - #if (defined __APPLE__) || (defined __clang__) - -+#ifndef __FreeBSD__ -+ - typedef int _Unwind_Action; - typedef void _Unwind_Exception; - -@@ -24,3 +26,5 @@ - - #endif - -+#endif -+ |