build: Add missing intrinsics.mk
This commit is contained in:
parent
04f966f0bc
commit
e78a9c321b
19
mk/intrinsics.mk
Normal file
19
mk/intrinsics.mk
Normal file
@ -0,0 +1,19 @@
|
||||
######################################################################
|
||||
# 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 $@ $<
|
||||
|
Loading…
x
Reference in New Issue
Block a user