2021-11-07 16:43:49 +08:00
|
|
|
# needs-llvm-components: x86 arm
|
|
|
|
|
2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2016-01-25 11:36:18 -08:00
|
|
|
|
|
|
|
all: default
|
2017-11-23 23:19:50 +08:00
|
|
|
$(RUSTC) --target x86_64-pc-windows-gnu --print cfg | $(CGREP) windows
|
|
|
|
$(RUSTC) --target x86_64-pc-windows-gnu --print cfg | $(CGREP) x86_64
|
|
|
|
$(RUSTC) --target i686-pc-windows-msvc --print cfg | $(CGREP) msvc
|
|
|
|
$(RUSTC) --target i686-apple-darwin --print cfg | $(CGREP) macos
|
|
|
|
$(RUSTC) --target i686-unknown-linux-gnu --print cfg | $(CGREP) gnu
|
2021-07-06 22:00:53 -07:00
|
|
|
$(RUSTC) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP) target_abi=
|
|
|
|
$(RUSTC) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP) eabihf
|
2016-01-25 11:36:18 -08:00
|
|
|
|
|
|
|
ifdef IS_WINDOWS
|
|
|
|
default:
|
2017-11-23 23:19:50 +08:00
|
|
|
$(RUSTC) --print cfg | $(CGREP) windows
|
2016-01-25 11:36:18 -08:00
|
|
|
else
|
|
|
|
default:
|
2017-11-23 23:19:50 +08:00
|
|
|
$(RUSTC) --print cfg | $(CGREP) unix
|
2016-01-25 11:36:18 -08:00
|
|
|
endif
|