When building clang+compiler-rt verbosely, the build commands of compiler-rt 
are not output in the terminal as expected.
This patch fixes the issue by forwarding the VERBOSE flag to the compiler-rt 
make.

http://llvm-reviews.chandlerc.com/D67

Files:
  runtime/compiler-rt/Makefile

Index: runtime/compiler-rt/Makefile
===================================================================
--- runtime/compiler-rt/Makefile
+++ runtime/compiler-rt/Makefile
@@ -121,6 +121,12 @@
 # modified based on changes in the compiler-rt layout or build system.
 ####
 
+ifdef VERBOSE
+       RUNTIME_VERBOSE := VERBOSE=$(VERBOSE)
+else
+       RUNTIME_VERBOSE :=
+endif
+
 # Rule to build the compiler-rt libraries we need.
 #
 # We build all the libraries in a single shot to avoid recursive make as much 
as
@@ -130,12 +136,14 @@
          ProjSrcRoot=$(COMPILERRT_SRC_ROOT) \
          ProjObjRoot=$(PROJ_OBJ_DIR) \
          CC="$(ToolDir)/clang" \
+         $(RUNTIME_VERBOSE) \
          $(RuntimeDirs:%=clang_%)
 .PHONY: BuildRuntimeLibraries
 CleanRuntimeLibraries:
        $(Verb) $(MAKE) -C $(COMPILERRT_SRC_ROOT) \
          ProjSrcRoot=$(COMPILERRT_SRC_ROOT) \
          ProjObjRoot=$(PROJ_OBJ_DIR) \
+         $(RUNTIME_VERBOSE) \
          clean
 .PHONY: CleanRuntimeLibraries
Index: runtime/compiler-rt/Makefile
===================================================================
--- runtime/compiler-rt/Makefile
+++ runtime/compiler-rt/Makefile
@@ -121,6 +121,12 @@
 # modified based on changes in the compiler-rt layout or build system.
 ####
 
+ifdef VERBOSE
+	RUNTIME_VERBOSE := VERBOSE=$(VERBOSE)
+else
+	RUNTIME_VERBOSE :=
+endif
+
 # Rule to build the compiler-rt libraries we need.
 #
 # We build all the libraries in a single shot to avoid recursive make as much as
@@ -130,12 +136,14 @@
 	  ProjSrcRoot=$(COMPILERRT_SRC_ROOT) \
 	  ProjObjRoot=$(PROJ_OBJ_DIR) \
 	  CC="$(ToolDir)/clang" \
+	  $(RUNTIME_VERBOSE) \
 	  $(RuntimeDirs:%=clang_%)
 .PHONY: BuildRuntimeLibraries
 CleanRuntimeLibraries:
 	$(Verb) $(MAKE) -C $(COMPILERRT_SRC_ROOT) \
 	  ProjSrcRoot=$(COMPILERRT_SRC_ROOT) \
 	  ProjObjRoot=$(PROJ_OBJ_DIR) \
+	  $(RUNTIME_VERBOSE) \
 	  clean
 .PHONY: CleanRuntimeLibraries
 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to