From cceed9fc770e1501540f81b8dce5dfd83421a7ca Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 8 Nov 2004 17:32:12 +0000 Subject: [PATCH] Implement and document the TOOL_VERBOSE option that asks each tool invoked to be verbose about its actions too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17624 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 10 +++++++++- docs/MakefileGuide.html | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index b5f38538660..69bb2c9926f 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -222,6 +222,14 @@ else LD.Flags += -rpath $(LibDir) endif +ifdef TOOL_VERBOSE + C.Flags += -v + CXX.Flags += -v + LD.Flags += -v + BCLinkLib.Flags += -v + VERBOSE := 1 +endif + # Adjust settings for verbose mode ifndef VERBOSE Verb := @ @@ -268,7 +276,7 @@ Link = $(LIBTOOL) $(LibTool.Flags) --mode=link $(CXX) $(CPP.Flags) \ $(CompileCommonOpts) $(LD.Flags) $(Strip) Relink = $(LIBTOOL) $(LibTool.Flags) --mode=link $(CXX) $(CPP.Flags) \ $(CompileCommonOpts) -BCLinkLib = $(LLVMGCC) -shared -nostdlib +BCLinkLib = $(LLVMGCC) -shared -nostdlib $(BCLinkLib.Flags) LTInstall = $(LIBTOOL) $(LibTool.Flags) --mode=install $(INSTALL) Burg = $(BURG) -I $(BUILD_SRC_DIR) TableGen = $(TBLGEN) -I $(BUILD_SRC_DIR) diff --git a/docs/MakefileGuide.html b/docs/MakefileGuide.html index cb2cba5d280..43ed704c903 100644 --- a/docs/MakefileGuide.html +++ b/docs/MakefileGuide.html @@ -563,6 +563,12 @@
TOOLNAME
Specifies the name of the tool that the current directory should build.
+
TOOL_VERBOSE
+
Implies VERBOSE and also tells each tool invoked to be verbose. This is + handy when you're trying to see the sub-tools invoked by each tool invoked + by the makefile. For example, this will pass -v to the GCC + compilers which causes it to print out the command lines it uses to invoke + sub-tools (compiler, assembler, linker).
USEDLIBS
Specifies the list of project libraries that will be linked into the tool or library.