File tree Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 6122a5f559362dad03ed6e2433b8d71cece649c5
32
+ refs/heads/stable: a4ef308473f284a93d2d9f32763e09ba7424540b
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
Original file line number Diff line number Diff line change 39
39
ifdef CFG_MSVC_LINK
40
40
export PATH := $(CFG_MSVC_ROOT ) /VC/bin/amd64:$(PATH )
41
41
endif
42
+
43
+ # There are more comments about this available in the target specification for
44
+ # Windows MSVC in the compiler, but the gist of it is that we use `llvm-ar.exe`
45
+ # instead of `lib.exe` for assembling archives, so we need to inject this custom
46
+ # dependency here.
47
+ NATIVE_TOOL_DEPS_core_T_x86_64-pc-windows-msvc += llvm-ar.exe
Original file line number Diff line number Diff line change 58
58
clean-llvm$(1 ) :
59
59
endif
60
60
61
+ $$(LLVM_AR_$(1 ) ) : $$(LLVM_CONFIG_$(1 ) )
62
+
61
63
# This is used to independently force an LLVM clean rebuild
62
64
# when we changed something not otherwise captured by builtin
63
65
# dependencies. In these cases, commit a change that touches
Original file line number Diff line number Diff line change @@ -292,6 +292,7 @@ endif
292
292
# Any rules that depend on LLVM should depend on LLVM_CONFIG
293
293
LLVM_CONFIG_$(1 ) :=$$(CFG_LLVM_INST_DIR_$(1 ) ) /bin/llvm-config$$(X_$(1 ) )
294
294
LLVM_MC_$(1 ) :=$$(CFG_LLVM_INST_DIR_$(1 ) ) /bin/llvm-mc$$(X_$(1 ) )
295
+ LLVM_AR_$(1 ) :=$$(CFG_LLVM_INST_DIR_$(1 ) ) /bin/llvm-ar$$(X_$(1 ) )
295
296
LLVM_VERSION_$(1 ) =$$(shell "$$(LLVM_CONFIG_$(1 ) ) " --version)
296
297
LLVM_BINDIR_$(1 ) =$$(shell "$$(LLVM_CONFIG_$(1 ) ) " --bindir)
297
298
LLVM_INCDIR_$(1 ) =$$(shell "$$(LLVM_CONFIG_$(1 ) ) " --includedir)
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ CRATE_FULLDEPS_$(1)_T_$(2)_H_$(3)_$(4) := \
37
37
$$(foreach dep,$$(NATIVE_DEPS_$(4 ) ) , \
38
38
$$(RT_OUTPUT_DIR_$(2 ) ) /$$(call CFG_STATIC_LIB_NAME_$(2 ) ,$$(dep ) ) ) \
39
39
$$(foreach dep,$$(NATIVE_DEPS_$(4 ) _T_$(2 ) ) , \
40
- $$(RT_OUTPUT_DIR_$(2 ) ) /$$(dep ) )
40
+ $$(RT_OUTPUT_DIR_$(2 ) ) /$$(dep ) ) \
41
+ $$(foreach dep,$$(NATIVE_TOOL_DEPS_$(4 ) _T_$(2 ) ) , \
42
+ $$(TBIN$(1 ) _T_$(3 ) _H_$(3 ) ) /$$(dep ) )
41
43
endef
42
44
43
45
$(foreach host,$(CFG_HOST), \
@@ -149,6 +151,11 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/%: $$(RT_OUTPUT_DIR_$(2))/% \
149
151
| $$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) / $$(SNAPSHOT_RUSTC_POST_CLEANUP )
150
152
@$$(call E, cp: $$@ )
151
153
$$(Q ) cp $$< $$@
154
+
155
+ $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) /%: $$(CFG_LLVM_INST_DIR_$(2 ) ) /bin/% \
156
+ | $$(TBIN$(1 ) _T_$(2 ) _H_$(3 ) ) / $$(SNAPSHOT_RUSTC_POST_CLEANUP )
157
+ @$$(call E, cp: $$@ )
158
+ $$(Q ) cp $$< $$@
152
159
endef
153
160
154
161
$(foreach source,$(CFG_HOST), \
You can’t perform that action at this time.
0 commit comments