forked from Archive/PX4-Autopilot
Pass the absolute path to the compiler/assembler so that error messages include enough information for an IDE to find the file.
This commit is contained in:
parent
854c6436b4
commit
ab0459c1f4
|
@ -114,7 +114,7 @@ endef
|
||||||
|
|
||||||
define COMPILE
|
define COMPILE
|
||||||
@echo "CC: $1"
|
@echo "CC: $1"
|
||||||
$(Q) $(CC) -c $(CFLAGS) $1 -o $2
|
$(Q) $(CC) -c $(CFLAGS) $(abspath $1) -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# COMPILEXX - Default macro to compile one C++ file
|
# COMPILEXX - Default macro to compile one C++ file
|
||||||
|
@ -128,7 +128,7 @@ endef
|
||||||
|
|
||||||
define COMPILEXX
|
define COMPILEXX
|
||||||
@echo "CXX: $1"
|
@echo "CXX: $1"
|
||||||
$(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2
|
$(Q) $(CXX) -c $(CXXFLAGS) $(abspath $1) -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# ASSEMBLE - Default macro to assemble one assembly language file
|
# ASSEMBLE - Default macro to assemble one assembly language file
|
||||||
|
@ -149,7 +149,7 @@ endef
|
||||||
|
|
||||||
define ASSEMBLE
|
define ASSEMBLE
|
||||||
@echo "AS: $1"
|
@echo "AS: $1"
|
||||||
$(Q) $(CC) -c $(AFLAGS) $1 -o $2
|
$(Q) $(CC) -c $(AFLAGS) $(abspath $1) -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# ARCHIVE - Add a list of files to an archive
|
# ARCHIVE - Add a list of files to an archive
|
||||||
|
|
Loading…
Reference in New Issue