Преглед на файлове

buildsys: skip compiler flag checking for clean targets

As suggested by Bernhard, there is no point in evaluating the compiler's
flag availability when cleaning, so skip things in that case.  If there
are variables that change targets based on the flags, then things are
already broken and need fixing independently.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger преди 14 години
родител
ревизия
94bf930db1
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      Rules.mak

+ 2 - 0
Rules.mak

@@ -176,11 +176,13 @@ check_ld=$(shell \
 # Use variable indirection here so that we can have variable
 # names with fun chars in them like equal signs
 define check-tool-var
+ifeq ($(filter clean CLEAN_%,$(MAKECMDGOALS)),)
 _v = $(2)_$(3)
 ifndef $$(_v)
 $$(_v) := $$(call $(1),$(subst %, ,$(3)))
 export $$(_v)
 endif
+endif
 endef
 
 # Usage: check-gcc-var,<flag>