4 ifeq ($(filter arm
,$(LLVM_COMPONENTS
)),arm
)
5 # construct a fairly exhaustive list of platforms that we
6 # support. These ones don't follow a pattern
7 TARGETS
+= arm-linux-androideabi arm-unknown-linux-gnueabihf arm-unknown-linux-gnueabi
10 ifeq ($(filter x86
,$(LLVM_COMPONENTS
)),x86
)
11 X86_ARCHS
= i686 x86_64
16 # these ones do, each OS lists the architectures it supports
17 LINUX
=$(filter aarch64 mips
,$(LLVM_COMPONENTS
)) $(X86_ARCHS
)
18 ifeq ($(filter mips
,$(LLVM_COMPONENTS
)),mips
)
23 # fails with: failed to get iphonesimulator SDK path: no such file or directory
24 #IOS=i386 aarch64 armv7
27 $(foreach arch
,$(LINUX
),$(eval TARGETS
+= $(arch
)-unknown-linux-gnu
))
28 $(foreach arch
,$(WINDOWS
),$(eval TARGETS
+= $(arch
)-pc-windows-gnu
))
29 #$(foreach arch,$(IOS),$(eval TARGETS += $(arch)-apple-ios))
30 $(foreach arch
,$(DARWIN
),$(eval TARGETS
+= $(arch
)-apple-darwin
))
35 # compile the rust file to the given target, but only to asm and IR
36 # form, to avoid having to have an appropriate linker.
38 # we need some features because the integer SIMD instructions are not
39 # enabled by-default for i686 and ARM; these features will be invalid
40 # on some platforms, but LLVM just prints a warning so that's fine for
43 $$(RUSTC
) --target
=$(1) --emit
=llvm-ir
,asm simd.rs \
44 -C target-feature
='+neon,+sse2' -C extra-filename
=-$(1)
47 $(foreach targetxxx
,$(TARGETS
),$(eval
$(call MK_TARGETS
,$(targetxxx
))))