mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 13:50:48 +00:00
Add support for building glue.o.
This commit is contained in:
parent
29d7cb8833
commit
b7972d34ed
1 changed files with 17 additions and 1 deletions
18
Makefile.in
18
Makefile.in
|
@ -105,7 +105,7 @@ ifdef CFG_UNIXY
|
|||
CFG_VALGRIND += --leak-check=full \
|
||||
--error-exitcode=1 \
|
||||
--quiet --vex-iropt-level=0 \
|
||||
--suppressions=etc/x86.supp
|
||||
--suppressions=$(S)src/etc/x86.supp
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -113,6 +113,8 @@ CFG_RUNTIME :=$(call CFG_LIB_NAME,rustrt)
|
|||
CFG_LLVMEXT :=$(call CFG_LIB_NAME,llvmext)
|
||||
CFG_STDLIB :=$(call CFG_LIB_NAME,std)
|
||||
|
||||
CFG_LLC_CFLAGS := -march=x86
|
||||
|
||||
ifdef CFG_GCC
|
||||
CFG_INFO := $(info cfg: using gcc)
|
||||
CFG_GCC_CFLAGS += -Wall -Werror -fno-rtti -fno-exceptions -g
|
||||
|
@ -331,6 +333,7 @@ all: boot/rustboot$(X) \
|
|||
rt/$(CFG_RUNTIME) \
|
||||
llvmext/$(CFG_LLVMEXT) \
|
||||
stage0/rustc$(X) \
|
||||
stage0/glue.o \
|
||||
$(GENERATED)
|
||||
|
||||
rt/$(CFG_RUNTIME): $(RUNTIME_OBJS) $(MKFILES) $(RUNTIME_HDR)
|
||||
|
@ -400,6 +403,19 @@ llvmext/%.o: llvmext/%.cpp $(MKFILES)
|
|||
@$(call E, lex-gen: $@)
|
||||
$(Q)ocamllex$(OPT) -q -o $@ $<
|
||||
|
||||
%.o: %.s
|
||||
@$(call E, assemble [llvm]: $@)
|
||||
$(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
|
||||
|
||||
%.ll: %.bc
|
||||
@$(call E, dis [llvm]: $@)
|
||||
$(Q)$(CFG_LLVM_BINDIR)/llvm-dis -o $@ $<
|
||||
|
||||
|
||||
%.s: %.bc
|
||||
@$(call E, compile [llvm]: $@)
|
||||
$(Q)$(CFG_LLVM_BINDIR)/llc $(CFG_LLC_CFLAGS) -o $@ $<
|
||||
|
||||
|
||||
######################################################################
|
||||
# Cleanup
|
||||
|
|
Loading…
Reference in a new issue