Skip to content

Commit 9e025b0

Browse files
committed
---
yaml --- r: 2056 b: refs/heads/master c: e733311 h: refs/heads/master v: v3
1 parent 19dc016 commit 9e025b0

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1f04c3dcefa7e01b3618cb79a0d2989c61fd1841
2+
refs/heads/master: e733311a95fcde5d4d41210577d22f08a5f07f1a

trunk/Makefile.in

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -367,17 +367,18 @@ RUNTIME_LIBS := $(CFG_GCC_POST_LIB_FLAGS)
367367
# rustc LLVM-extensions (C++) library variables
368368
######################################################################
369369

370-
RUSTLLVM_CS := $(addprefix rustllvm/, \
371-
MachOObjectFile.cpp Object.cpp RustWrapper.cpp)
370+
RUSTLLVM_LIB_CS := $(addprefix rustllvm/, \
371+
MachOObjectFile.cpp Object.cpp)
372+
373+
RUSTLLVM_OBJS_CS := $(addprefix rustllvm/, RustWrapper.cpp)
372374

373375
RUSTLLVM_HDR := rustllvm/include/llvm-c/Object.h
374376
RUSTLLVM_DEF := rustllvm/rustllvm$(CFG_DEF_SUFFIX)
375377

376378
RUSTLLVM_INCS := -iquote $(CFG_LLVM_INCDIR) \
377379
-iquote $(S)src/rustllvm/include
378-
RUSTLLVM_OBJS := $(RUSTLLVM_CS:.cpp=.o)
379-
RUSTLLVM_LIBS := $(CFG_LLVM_LDFLAGS) $(CFG_LLVM_LIBS) \
380-
$(CFG_GCC_POST_LIB_FLAGS)
380+
RUSTLLVM_LIB_OBJS := $(RUSTLLVM_LIB_CS:.cpp=.o)
381+
RUSTLLVM_OBJS_OBJS := $(RUSTLLVM_OBJS_CS:.cpp=.o)
381382

382383
######################################################################
383384
# Standard library variables
@@ -426,16 +427,17 @@ rt/$(CFG_RUNTIME): $(RUNTIME_OBJS) $(MKFILES) $(RUNTIME_HDR) $(RUNTIME_DEF)
426427
# FIXME: Building a .a is a hack so that we build with both older and newer
427428
# versions of LLVM. In newer versions some of the bits of this library are
428429
# already in LLVM itself, so they are skipped.
429-
rustllvm/rustllvmbits.a: $(RUSTLLVM_OBJS)
430+
rustllvm/rustllvmbits.a: $(RUSTLLVM_LIB_OBJS)
430431
rm -f $@
431432
ar crs $@ $^
432433

433-
rustllvm/$(CFG_RUSTLLVM): rustllvm/rustllvmbits.a $(MKFILES) $(RUSTLLVM_HDR) \
434-
$(RUSTLLVM_DEF)
434+
rustllvm/$(CFG_RUSTLLVM): rustllvm/rustllvmbits.a $(RUSTLLVM_OBJS_OBJS) \
435+
$(MKFILES) $(RUSTLLVM_HDR) $(RUSTLLVM_DEF)
435436
@$(call E, link: $@)
436-
$(Q)$(call CFG_LINK_C,$@,$(RUSTLLVM_LIBS) rustllvm/rustllvmbits.a \
437-
$(CFG_GCC_PRE_LIB_FLAGS) $(CFG_LLVM_LIBS) \
438-
$(CFG_GCC_POST_LIB_FLAGS) $(CFG_LLVM_LDFLAGS),$(RUSTLLVM_DEF))
437+
$(Q)$(call CFG_LINK_C,$@,$(RUSTLLVM_OBJS_OBJS) \
438+
$(CFG_GCC_PRE_LIB_FLAGS) $(CFG_LLVM_LIBS) \
439+
$(CFG_GCC_POST_LIB_FLAGS) rustllvm/rustllvmbits.a \
440+
$(CFG_LLVM_LDFLAGS),$(RUSTLLVM_DEF))
439441

440442
ifdef CFG_BOOT_NATIVE
441443
boot/rustboot$(X): $(BOOT_CMXS) $(MKFILES)
@@ -893,7 +895,8 @@ test/compile-fail/%.stage0.out.tmp: test/compile-fail/%.rs $(SREQ0)
893895
######################################################################
894896

895897
ML_DEPFILES := $(BOOT_MLS:%.ml=%.d)
896-
C_DEPFILES := $(RUNTIME_CS:%.cpp=%.d) $(RUSTLLVM_CS:%.cpp=%.d)
898+
C_DEPFILES := $(RUNTIME_CS:%.cpp=%.d) $(RUSTLLVM_LIB_CS:%.cpp=%.d) \
899+
$(RUSTLLVM_OBJS_CS:%.cpp=%.d)
897900

898901
rt/%.d: rt/%.cpp $(MKFILES)
899902
@$(call E, dep: $@)
@@ -1007,7 +1010,8 @@ PKG_FILES = \
10071010
README boot/README comp/README \
10081011
$(filter-out $(GENERATED), $(BOOT_MLS)) \
10091012
$(RUNTIME_CS) $(RUNTIME_HDR) \
1010-
$(RUSTLLVM_CS) $(RUSTLLVM_HDR) \
1013+
$(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \
1014+
$(RUSTLLVM_HDR) \
10111015
$(PKG_3RDPARTY)) \
10121016
$(GENERATED) \
10131017
$(S)src/boot/fe/lexer.ml \
@@ -1055,15 +1059,15 @@ tidy:
10551059
@$(call E, check: formatting)
10561060
$(Q)echo \
10571061
$(filter-out $(GENERATED) $(addprefix $(S)src/, $(GENERATED)) \
1058-
$(addprefix $(S)src/, $(RUSTLLVM_CS) $(RUSTLLVM_HDR) \
1059-
$(PKG_3RDPARTY)) \
1062+
$(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \
1063+
$(RUSTLLVM_HDR) $(PKG_3RDPARTY)) \
10601064
$(S)src/etc/%, $(PKG_FILES)) \
10611065
| xargs -n 10 python $(S)src/etc/tidy.py
10621066

10631067
clean:
10641068
@$(call E, cleaning)
10651069
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
1066-
$(Q)rm -f $(RUSTLLVM_OBJS) $(RUSTLLVM_DEF)
1070+
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
10671071
$(Q)rm -f $(BOOT_CMOS) $(BOOT_CMIS) $(BOOT_CMXS) $(BOOT_OBJS)
10681072
$(Q)rm -f $(ML_DEPFILES) $(C_DEPFILES) $(CRATE_DEPFILES)
10691073
$(Q)rm -f $(ML_DEPFILES:%.d=%.d.tmp)

0 commit comments

Comments
 (0)