Fix huge bug in makefile prevent rust from building with debugging or with -O.

This commit is contained in:
Jack Moffitt 2013-09-23 10:38:26 -06:00
parent 0096d119f0
commit 3de7a1e4f6

View file

@ -93,11 +93,11 @@ $(S)config.stamp : $(S)configure $(S)Makefile.in
ifneq ($(CFG_LOCAL_RUSTC),1) ifneq ($(CFG_LOCAL_RUSTC),1)
$(CFG_RUSTC): $(CFG_RUSTC):
@$(call E, building rustc) @$(call E, building rustc)
$(Q)$(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" CFG_RUSTC_FLAGS="" RUSTFLAGS="" CC=gcc CXX=g++ LD=ld AR=ar $(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS= $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" CC=gcc CXX=g++ LD=ld AR=ar
clean-rust: clean-rust:
@$(call E, cleaning rustc) @$(call E, cleaning rustc)
$(Q)$(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" CFG_RUSTC_FLAGS="" RUSTFLAGS="" clean $(Q)CFG_RUSTC_FLAGS= CFG_ENABLE_DEBUG= RUSTFLAGS= $(MAKE) -C "$(CFG_BUILD_DIR)src/compiler/rust" clean
else else
$(CFG_RUSTC): $(CFG_RUSTC):