Skip to content

Commit 6b3c7cb

Browse files
committed
Build rustllvm into $target/rustllvm
1 parent 44be4a4 commit 6b3c7cb

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,16 +664,14 @@ do
664664
make_dir $i
665665
done
666666

667-
make_dir llvm
668667
for t in $CFG_HOST_TRIPLES
669668
do
670669
make_dir $t/llvm
671670
done
672671

673-
make_dir rustllvm
674672
for t in $CFG_HOST_TRIPLES
675673
do
676-
make_dir rustllvm/$t
674+
make_dir $t/rustllvm
677675
done
678676

679677
make_dir rt

mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ clean: clean-misc $(CLEAN_STAGE_RULES)
3333

3434
clean-misc:
3535
@$(call E, cleaning)
36-
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)/test \
36+
$(Q)find $(CFG_BUILD_TRIPLE)/rustllvm rt $(CFG_BUILD_TRIPLE)/test \
3737
-name '*.[odasS]' -o \
3838
-name '*.so' -o \
3939
-name '*.dylib' -o \

mk/rustllvm.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ RUSTLLVM_DEF_$(1) := rustllvm/rustllvm$(CFG_DEF_SUFFIX_$(1))
2929
RUSTLLVM_INCS_$(1) = $$(LLVM_EXTRA_INCDIRS_$(1)) \
3030
-iquote $$(LLVM_INCDIR_$(1)) \
3131
-iquote $$(S)src/rustllvm/include
32-
RUSTLLVM_OBJS_OBJS_$(1) := $$(RUSTLLVM_OBJS_CS_$(1):rustllvm/%.cpp=rustllvm/$(1)/%.o)
32+
RUSTLLVM_OBJS_OBJS_$(1) := $$(RUSTLLVM_OBJS_CS_$(1):rustllvm/%.cpp=$(1)/rustllvm/%.o)
3333
ALL_OBJ_FILES += $$(RUSTLLVM_OBJS_OBJS_$(1))
3434

35-
rustllvm/$(1)/$(CFG_RUSTLLVM_$(1)): $$(RUSTLLVM_OBJS_OBJS_$(1)) \
35+
$(1)/rustllvm/$(CFG_RUSTLLVM_$(1)): $$(RUSTLLVM_OBJS_OBJS_$(1)) \
3636
$$(MKFILE_DEPS) $$(RUSTLLVM_DEF_$(1))
3737
@$$(call E, link: $$@)
3838
$$(Q)$$(call CFG_LINK_CXX_$(1),$$@,$$(RUSTLLVM_OBJS_OBJS_$(1)) \
3939
$$(CFG_GCCISH_PRE_LIB_FLAGS_$(1)) $$(LLVM_LIBS_$(1)) \
4040
$$(CFG_GCCISH_POST_LIB_FLAGS_$(1)) \
4141
$$(LLVM_LDFLAGS_$(1)),$$(RUSTLLVM_DEF_$(1)),$$(CFG_RUSTLLVM_$(1)))
4242

43-
rustllvm/$(1)/%.o: rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
43+
$(1)/rustllvm/%.o: rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
4444
@$$(call E, compile: $$@)
4545
$$(Q)$$(call CFG_COMPILE_CXX_$(1), $$@, $$(LLVM_CXXFLAGS_$(1)) $$(RUSTLLVM_INCS_$(1))) $$<
4646
endef

mk/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBSYNTAX_$(3)): \
8686
ifneq ($$(findstring $(2),$$(CFG_HOST_TRIPLES)),)
8787

8888
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(3)): \
89-
rustllvm/$(2)/$(CFG_RUSTLLVM_$(3)) \
89+
$(2)/rustllvm/$(CFG_RUSTLLVM_$(3)) \
9090
| $$(TLIB$(1)_T_$(2)_H_$(3))/ \
9191
$(SNAPSHOT_RUSTC_POST_CLEANUP)
9292
@$$(call E, cp: $$@)

0 commit comments

Comments
 (0)