genode/repos/libports/lib/import/import-libcore-rust.mk

26 lines
875 B
Makefile

TARGET_DIR = src/lib/rust-targets/spec
ifeq ($(filter-out $(SPECS),x86),)
ifeq ($(filter-out $(SPECS),32bit),)
CC_RUSTC_OPT += --target $(call select_from_repositories,$(TARGET_DIR)/x86_32/target.json)
endif # 32bit
ifeq ($(filter-out $(SPECS),64bit),)
CC_RUSTC_OPT += --target $(call select_from_repositories,$(TARGET_DIR)/x86_64/target.json)
endif # 64bit
endif # x86
ifeq ($(filter-out $(SPECS),arm_v6),)
CC_RUSTC_OPT += --target $(call select_from_repositories,$(TARGET_DIR)/armv6/target.json)
else ifeq ($(filter-out $(SPECS),arm_v7),)
CC_RUSTC_OPT += --target $(call select_from_repositories,$(TARGET_DIR)/armv7/target.json)
endif # ARM
ifeq ($(filter-out $(SPECS),riscv),)
CC_RUSTC_OPT += --target $(call select_from_repositories,$(TARGET_DIR)/riscv/target.json)
endif # RISCV
#
# Circular dependencies
#
LIBS += libunwind-rust builtins-rust