]> git.lizzy.rs Git - rust.git/commitdiff
trans: Specify `archive_format` for MSVC
authorAlex Crichton <alex@alexcrichton.com>
Tue, 4 Aug 2015 16:08:07 +0000 (09:08 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 11 Aug 2015 00:45:16 +0000 (17:45 -0700)
This means that we no longer need to ship the `llvm-ar.exe` binary in the MSVC
distribution, and after a snapshot we can remove a good bit of logic from the
makefiles!

mk/platform.mk
mk/target.mk
src/librustc_back/target/windows_msvc_base.rs

index 60fe22cb32ee695a4a749d0af0a677b727a2cf0a..6e6101dd2a16f02a1dac20001944d88075d974b6 100644 (file)
@@ -243,6 +243,9 @@ $(foreach target,$(CFG_TARGET), \
 # Windows MSVC in the compiler, but the gist of it is that we use `llvm-ar.exe`
 # instead of `lib.exe` for assembling archives, so we need to inject this custom
 # dependency here.
+#
+# FIXME(stage0): remove this and all other relevant support in the makefiles
+#                after a snapshot is made
 define ADD_LLVM_AR_TO_MSVC_DEPS
 ifeq ($$(findstring msvc,$(1)),msvc)
 NATIVE_TOOL_DEPS_core_T_$(1) += llvm-ar.exe
index c2de9af39c7643397ab6370978b4d550f3503b51..345874ada6db543aa0582b93ab8f9c7cb9bf80a7 100644 (file)
@@ -206,6 +206,9 @@ $(foreach host,$(CFG_HOST), \
 # $(3) - triple snapshot is built for
 # $(4) - crate
 # $(5) - tool
+#
+# FIXME(stage0): remove this and all other relevant support in the makefiles
+#                after a snapshot is made
 define MOVE_TOOLS_TO_SNAPSHOT_HOST_DIR
 ifneq (,$(3))
 $$(TLIB$(1)_T_$(2)_H_$(2))/stamp.$(4): $$(HLIB$(1)_H_$(2))/rustlib/$(3)/bin/$(5)
@@ -230,6 +233,9 @@ $(foreach target,$(CFG_TARGET), \
 #   path instead of MinGW's /usr/bin/link.exe (entirely unrelated)
 #
 # The values for these variables are detected by the configure script.
+#
+# FIXME(stage0): remove this and all other relevant support in the makefiles
+#                after a snapshot is made
 define SETUP_LIB_MSVC_ENV_VARS
 ifeq ($$(findstring msvc,$(2)),msvc)
 $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
index 30d74c807352c192a6a554484d108fef0c8d402f..03d6996403166db45bcede2999c1c420c3d251de 100644 (file)
@@ -60,6 +60,7 @@ pub fn opts() -> TargetOptions {
             "/NOLOGO".to_string(),
             "/NXCOMPAT".to_string(),
         ],
+        archive_format: "gnu".to_string(),
 
         .. Default::default()
     }