[llvm] r211131 - Add the coverage cflags to the link step as well to make sure

Eric Christopher echristo at gmail.com
Tue Jun 17 16:27:32 PDT 2014


Author: echristo
Date: Tue Jun 17 18:27:32 2014
New Revision: 211131

URL: http://llvm.org/viewvc/llvm-project?rev=211131&view=rev
Log:
Add the coverage cflags to the link step as well to make sure
that we link in the support libraries.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=211131&r1=211130&r2=211131&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Tue Jun 17 18:27:32 2014
@@ -377,6 +377,7 @@ ifeq ($(ENABLE_COVERAGE),1)
   BuildMode := $(BuildMode)+Coverage
   CXX.Flags += -ftest-coverage -fprofile-arcs
   C.Flags   += -ftest-coverage -fprofile-arcs
+  LD.Flags   += -ftest-coverage -fprofile-arcs
 endif
 
 # If DISABLE_ASSERTIONS=1 is specified (make command line or configured),





More information about the llvm-commits mailing list