tools/Config.mk: compile with full file path
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
c3ddb1507b
commit
9c6c9fb0cd
|
@ -268,7 +268,7 @@ endif
|
|||
|
||||
define PREPROCESS
|
||||
@echo "CPP: $1->$2"
|
||||
$(Q) $(CPP) $(CPPFLAGS) $($(strip $1)_CPPFLAGS) $1 -o $2
|
||||
$(Q) $(CPP) $(CPPFLAGS) $($(strip $1)_CPPFLAGS) $(abspath $1) -o $(abspath $2)
|
||||
endef
|
||||
|
||||
# COMPILE - Default macro to compile one C file
|
||||
|
@ -285,7 +285,7 @@ endef
|
|||
|
||||
define COMPILE
|
||||
@echo "CC: $1"
|
||||
$(Q) $(CCACHE) $(CC) -c $(CFLAGS) $3 $($(strip $1)_CFLAGS) $1 -o $2
|
||||
$(Q) $(CCACHE) $(CC) -c $(CFLAGS) $3 $($(strip $1)_CFLAGS) $(abspath $1) -o $(abspath $2)
|
||||
endef
|
||||
|
||||
# COMPILEXX - Default macro to compile one C++ file
|
||||
|
@ -303,7 +303,7 @@ endef
|
|||
|
||||
define COMPILEXX
|
||||
@echo "CXX: $1"
|
||||
$(Q) $(CCACHE) $(CXX) -c $(CXXFLAGS) $3 $($(strip $1)_CXXFLAGS) $1 -o $2
|
||||
$(Q) $(CCACHE) $(CXX) -c $(CXXFLAGS) $3 $($(strip $1)_CXXFLAGS) $(abspath $1) -o $(abspath $2)
|
||||
endef
|
||||
|
||||
# COMPILERUST - Default macro to compile one Rust file
|
||||
|
@ -321,7 +321,7 @@ endef
|
|||
|
||||
define COMPILERUST
|
||||
@echo "RUSTC: $1"
|
||||
$(Q) $(RUSTC) --emit obj $(RUSTFLAGS) $($(strip $1)_RUSTFLAGS) $1 -o $2
|
||||
$(Q) $(RUSTC) --emit obj $(RUSTFLAGS) $($(strip $1)_RUSTFLAGS) $(abspath $1) -o $(abspath $2)
|
||||
endef
|
||||
|
||||
# COMPILEZIG - Default macro to compile one Zig file
|
||||
|
@ -364,7 +364,7 @@ endef
|
|||
|
||||
define ASSEMBLE
|
||||
@echo "AS: $1"
|
||||
$(Q) $(CCACHE) $(CC) -c $(AFLAGS) $1 $($(strip $1)_AFLAGS) -o $2
|
||||
$(Q) $(CCACHE) $(CC) -c $(AFLAGS) $(abspath $1) $($(strip $1)_AFLAGS) -o $(abspath $2)
|
||||
endef
|
||||
|
||||
# INSTALL_LIB - Install a library $1 into target $2
|
||||
|
|
Loading…
Reference in New Issue