File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 4141* .o. *
4242* .patch
4343* .pyc
44+ * .rlib
4445* .rmeta
4546* .rpm
4647* .rsi
Original file line number Diff line number Diff line change @@ -410,6 +410,16 @@ $(obj)/exports_bindings_generated.h: $(obj)/bindings.o FORCE
410410$(obj ) /exports_kernel_generated.h : $(obj ) /kernel.o FORCE
411411 $(call if_changed,exports)
412412
413+ quiet_cmd_rustc_hostlibrary = $(RUSTC_OR_CLIPPY_QUIET ) H $@
414+ cmd_rustc_hostlibrary = \
415+ $(if $(skip_clippy ) ,$(RUSTC ) ,$(RUSTC_OR_CLIPPY ) ) \
416+ $(filter-out $(skip_flags ) ,$(rust_common_flags ) $(rustc_target_flags ) ) \
417+ --emit=dep-info,link --crate-type rlib -O \
418+ --out-dir $(objtree ) /$(obj ) -L$(objtree ) /$(obj ) \
419+ --crate-name $(patsubst lib% .rlib,% ,$(notdir $@ ) ) $< ; \
420+ mv $(objtree ) /$(obj ) /$(patsubst lib% .rlib,% ,$(notdir $@ ) ) .d $(depfile ) ; \
421+ sed -i '/^\# /d' $(depfile)
422+
413423quiet_cmd_rustc_procmacro = $(RUSTC_OR_CLIPPY_QUIET ) P $@
414424 cmd_rustc_procmacro = \
415425 $(RUSTC_OR_CLIPPY ) $(rust_common_flags ) $(rustc_target_flags ) \
You can’t perform that action at this time.
0 commit comments