@@ -80,25 +80,23 @@ host-rust := $(addprefix $(obj)/,$(host-rust))
80
80
#####
81
81
# Handle options to gcc. Support building with separate output directory
82
82
83
- _hostc_flags = $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
83
+ hostc_flags = -Wp,-MMD,$(depfile) \
84
+ $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \
84
85
$(HOSTCFLAGS_$(target-stem).o)
85
- _hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
86
+ hostcxx_flags = -Wp,-MMD,$(depfile) \
87
+ $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
86
88
$(HOSTCXXFLAGS_$(target-stem).o)
87
- _hostrust_flags = $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \
88
- $(HOSTRUSTFLAGS_$(target-stem))
89
+ hostrust_flags = $(KBUILD_HOSTRUSTFLAGS) $(HOST_EXTRARUSTFLAGS) \
90
+ $(HOSTRUSTFLAGS_$(target-stem))
89
91
90
92
# $(objtree)/$(obj) for including generated headers from checkin source files
91
93
ifeq ($(KBUILD_EXTMOD),)
92
94
ifdef building_out_of_srctree
93
- _hostc_flags += -I $(objtree)/$(obj)
94
- _hostcxx_flags += -I $(objtree)/$(obj)
95
+ hostc_flags += -I $(objtree)/$(obj)
96
+ hostcxx_flags += -I $(objtree)/$(obj)
95
97
endif
96
98
endif
97
99
98
- hostc_flags = -Wp,-MMD,$(depfile) $(_hostc_flags)
99
- hostcxx_flags = -Wp,-MMD,$(depfile) $(_hostcxx_flags)
100
- hostrust_flags = $(_hostrust_flags)
101
-
102
100
#####
103
101
# Compile programs on the host
104
102
0 commit comments