From ab0459c1f47689d9b4f2841111bd39f61a1d8f21 Mon Sep 17 00:00:00 2001 From: px4dev Date: Tue, 15 Jan 2013 23:03:47 -0800 Subject: [PATCH] Pass the absolute path to the compiler/assembler so that error messages include enough information for an IDE to find the file. --- nuttx/tools/Config.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk index 9ac93e7d01..9f36ed4f36 100644 --- a/nuttx/tools/Config.mk +++ b/nuttx/tools/Config.mk @@ -114,7 +114,7 @@ endef define COMPILE @echo "CC: $1" - $(Q) $(CC) -c $(CFLAGS) $1 -o $2 + $(Q) $(CC) -c $(CFLAGS) $(abspath $1) -o $2 endef # COMPILEXX - Default macro to compile one C++ file @@ -128,7 +128,7 @@ endef define COMPILEXX @echo "CXX: $1" - $(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2 + $(Q) $(CXX) -c $(CXXFLAGS) $(abspath $1) -o $2 endef # ASSEMBLE - Default macro to assemble one assembly language file @@ -149,7 +149,7 @@ endef define ASSEMBLE @echo "AS: $1" - $(Q) $(CC) -c $(AFLAGS) $1 -o $2 + $(Q) $(CC) -c $(AFLAGS) $(abspath $1) -o $2 endef # ARCHIVE - Add a list of files to an archive