aboutsummaryrefslogtreecommitdiff
path: root/mk/stage2.mk
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-08 21:10:04 -0700
committerPatrick Walton <[email protected]>2011-05-08 21:10:43 -0700
commit269550f6736c911e28ec9f01e88d9afeb47f12ec (patch)
tree2b0298d7d807d5786a900791acd45fe1f87c0f65 /mk/stage2.mk
parentrt: Consistently refer to structs as structs and classes as classes. Clang co... (diff)
downloadrust-269550f6736c911e28ec9f01e88d9afeb47f12ec.tar.xz
rust-269550f6736c911e28ec9f01e88d9afeb47f12ec.zip
build: Use clang to compile the runtime if available
Diffstat (limited to 'mk/stage2.mk')
-rw-r--r--mk/stage2.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/stage2.mk b/mk/stage2.mk
index 5e7a7885..f2eba3b0 100644
--- a/mk/stage2.mk
+++ b/mk/stage2.mk
@@ -6,8 +6,8 @@ stage2/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) \
stage2/$(CFG_STDLIB): stage2/std.o stage2/glue.o
@$(call E, link: $@)
- $(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o $(CFG_GCC_LINK_FLAGS) -o $@ $< \
- -Lstage2 -Lrt -lrustrt
+ $(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o $(CFG_GCCISH_LINK_FLAGS) -o \
+ $@ $< -Lstage2 -Lrt -lrustrt
stage2/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ1)
@$(call E, compile: $@)
@@ -30,11 +30,11 @@ stage2/intrinsics.bc: $(INTRINSICS_BC)
stage2/%.o: stage2/%.s
@$(call E, assemble [gcc]: $@)
- $(Q)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
+ $(Q)gcc $(CFG_GCCISH_CFLAGS) -o $@ -c $<
stage2/%$(X): stage2/%.o $(SREQ1)
@$(call E, link [gcc]: $@)
- $(Q)gcc $(CFG_GCC_CFLAGS) stage2/glue.o -o $@ $< \
+ $(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o -o $@ $< \
-Lstage2 -Lrustllvm -Lrt -lrustrt -lrustllvm -lstd -lm
@# dsymutil sometimes fails or prints a warning, but the
@# program still runs. Since it simplifies debugging other