commit e38c5cca48fecab4907d0512c9091a92788d6437
parent b2d9c7122bedf225f496ff1dd0abe27ecbcd495e
Author: kyle <kyle@0x30.net>
Date: Sun, 27 Nov 2016 22:39:08 -0700
src/citrun-inst: stop adding -coverage sometimes
Diffstat:
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/Jamfile b/src/Jamfile
@@ -65,8 +65,7 @@ INST_SRCS =
Stringize rt_h.h : rt.h ;
ObjectC++Flags $(INST_SRCS) : `llvm-config --cxxflags` ;
-ObjectDefines $(INST_SRCS) : CITRUN_SHARE=\\\"$(CITRUN_SHARE)\\\"
- CITRUN_COVERAGE=$(CITRUN_COVERAGE) ;
+ObjectDefines $(INST_SRCS) : CITRUN_SHARE=\\\"$(CITRUN_SHARE)\\\" ;
LINKFLAGS on citrun-inst = `llvm-config --ldflags` ;
diff --git a/src/inst_frontend.cc b/src/inst_frontend.cc
@@ -119,13 +119,8 @@ InstrumentFrontend::if_link_add_runtime(bool object_arg, bool compile_arg)
if (!linking)
return;
- *m_log << "Link detected, adding '";
-#ifdef CITRUN_COVERAGE
- // Needed because libcitrun.a will be instrumented with gcov.
- m_args.push_back(const_cast<char *>("-coverage"));
-#endif
m_args.push_back(const_cast<char *>(CITRUN_SHARE "/libcitrun.a"));
- *m_log << m_args.back() << "' to command line.\n";
+ *m_log << "Link detected, adding '"<< m_args.back() << "' to command line.\n";
}
void