mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
20 lines
632 B
Makefile
20 lines
632 B
Makefile
######################################################################
|
|
# intrinsics.bc rules
|
|
######################################################################
|
|
|
|
# TODO: Use clang to compile the C++.
|
|
INTRINSICS_LL_IN := $(S)src/rt/intrinsics/intrinsics.ll.in
|
|
INTRINSICS_LL := intrinsics/intrinsics.ll
|
|
INTRINSICS_BC := intrinsics/intrinsics.bc
|
|
|
|
$(INTRINSICS_LL): $(INTRINSICS_LL_IN) $(MKFILES)
|
|
@$(call E, mkdir: intrinsics)
|
|
$(Q)mkdir -p intrinsics
|
|
@$(call E, sed: $@)
|
|
$(Q)sed s/@CFG_LLVM_TRIPLE@/$(CFG_LLVM_TRIPLE)/g $< > $@
|
|
|
|
$(INTRINSICS_BC): $(INTRINSICS_LL) $(MKFILES)
|
|
@$(call E, llvm-as: $@)
|
|
$(Q)$(LLVM_AS) -o $@ $<
|
|
|