Makefile (8909a80e3f684fb274a171489c16e8f10c482e83) | Makefile (cb7d9defdafba4c1d463a09c9b09876066f81ee4) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2 3always-$(CONFIG_RUST) += target.json 4no-clean-files += target.json 5 6obj-$(CONFIG_RUST) += core.o compiler_builtins.o 7always-$(CONFIG_RUST) += exports_core_generated.h 8 --- 346 unchanged lines hidden (view full) --- 355 mv $(objtree)/$(obj)/$(patsubst %.o,%,$(notdir $@)).d $(depfile); \ 356 sed -i '/^\#/d' $(depfile) \ 357 $(if $(rustc_objcopy),;$(OBJCOPY) $(rustc_objcopy) $@) 358 359rust-analyzer: 360 $(Q)$(srctree)/scripts/generate_rust_analyzer.py $(srctree) $(objtree) \ 361 $(RUST_LIB_SRC) > $(objtree)/rust-project.json 362 | 1# SPDX-License-Identifier: GPL-2.0 2 3always-$(CONFIG_RUST) += target.json 4no-clean-files += target.json 5 6obj-$(CONFIG_RUST) += core.o compiler_builtins.o 7always-$(CONFIG_RUST) += exports_core_generated.h 8 --- 346 unchanged lines hidden (view full) --- 355 mv $(objtree)/$(obj)/$(patsubst %.o,%,$(notdir $@)).d $(depfile); \ 356 sed -i '/^\#/d' $(depfile) \ 357 $(if $(rustc_objcopy),;$(OBJCOPY) $(rustc_objcopy) $@) 358 359rust-analyzer: 360 $(Q)$(srctree)/scripts/generate_rust_analyzer.py $(srctree) $(objtree) \ 361 $(RUST_LIB_SRC) > $(objtree)/rust-project.json 362 |
363redirect-intrinsics = \ 364 __eqsf2 __gesf2 __lesf2 __nesf2 __unordsf2 \ 365 __unorddf2 \ 366 __muloti4 __multi3 \ 367 __udivmodti4 __udivti3 __umodti3 368 369ifneq ($(or $(CONFIG_ARM64),$(and $(CONFIG_RISCV),$(CONFIG_64BIT))),) 370 # These intrinsics are defined for ARM64 and RISCV64 371 redirect-intrinsics += \ 372 __ashrti3 \ 373 __ashlti3 __lshrti3 374endif 375 |
|
363$(obj)/core.o: private skip_clippy = 1 364$(obj)/core.o: private skip_flags = -Dunreachable_pub | 376$(obj)/core.o: private skip_clippy = 1 377$(obj)/core.o: private skip_flags = -Dunreachable_pub |
378$(obj)/core.o: private rustc_objcopy = $(foreach sym,$(redirect-intrinsics),--redefine-sym $(sym)=__rust$(sym)) |
|
365$(obj)/core.o: private rustc_target_flags = $(core-cfgs) 366$(obj)/core.o: $(RUST_LIB_SRC)/core/src/lib.rs $(obj)/target.json FORCE 367 $(call if_changed_dep,rustc_library) 368 369$(obj)/compiler_builtins.o: private rustc_objcopy = -w -W '__*' 370$(obj)/compiler_builtins.o: $(src)/compiler_builtins.rs $(obj)/core.o FORCE 371 $(call if_changed_dep,rustc_library) 372 --- 22 unchanged lines hidden --- | 379$(obj)/core.o: private rustc_target_flags = $(core-cfgs) 380$(obj)/core.o: $(RUST_LIB_SRC)/core/src/lib.rs $(obj)/target.json FORCE 381 $(call if_changed_dep,rustc_library) 382 383$(obj)/compiler_builtins.o: private rustc_objcopy = -w -W '__*' 384$(obj)/compiler_builtins.o: $(src)/compiler_builtins.rs $(obj)/core.o FORCE 385 $(call if_changed_dep,rustc_library) 386 --- 22 unchanged lines hidden --- |