Lines Matching full:option
19 # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise)
20 # Exit code chooses option. "$$TMP" serves as a temporary file and is
31 # as-option
32 # Usage: aflags-y += $(call as-option,-Wa$(comma)-isa=foo,)
34 as-option = $(call try-run,\
43 # __cc-option
44 # Usage: MY_CFLAGS += $(call __cc-option,$(CC),$(MY_CFLAGS),-march=winchip-c6,-march=i586)
45 __cc-option = $(call try-run,\
48 # cc-option
49 # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
51 cc-option = $(call __cc-option, $(CC),\
54 # cc-option-yn
55 # Usage: flag := $(call cc-option-yn,-march=winchip-c6)
56 cc-option-yn = $(if $(call cc-option,$1),y,n)
60 cc-disable-warning = $(if $(call cc-option,-W$(strip $1)),-Wno-$(strip $1))
70 # ld-option
71 # Usage: KBUILD_LDFLAGS += $(call ld-option, -X, -Y)
72 ld-option = $(call try-run, $(LD) $(KBUILD_LDFLAGS) $(1) -v,$(1),$(2),$(3))
74 # __rustc-option
75 # Usage: MY_RUSTFLAGS += $(call __rustc-option,$(RUSTC),$(MY_RUSTFLAGS),-Cinstrument-coverage,-Zins…
77 __rustc-option = $(call try-run,\
82 # rustc-option
83 # Usage: rustflags-y += $(call rustc-option,-Cinstrument-coverage,-Zinstrument-coverage)
84 rustc-option = $(call __rustc-option, $(RUSTC),\
87 # rustc-option-yn
88 # Usage: flag := $(call rustc-option-yn,-Cinstrument-coverage)
89 rustc-option-yn = $(if $(call rustc-option,$1),y,n)