hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lei_ch...@apache.org
Subject incubator-hawq git commit: HAWQ-653. fix the bug when enabling code coverage
Date Sun, 10 Apr 2016 07:10:12 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 434b93170 -> 079c499dd


HAWQ-653. fix the bug when enabling code coverage


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/079c499d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/079c499d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/079c499d

Branch: refs/heads/master
Commit: 079c499dd22d965a164eb340bdb286b313092e44
Parents: 434b931
Author: Lei Chang <chang.lei.cn@gmail.com>
Authored: Sun Apr 10 13:55:38 2016 +0800
Committer: Lei Chang <chang.lei.cn@gmail.com>
Committed: Sun Apr 10 14:55:01 2016 +0800

----------------------------------------------------------------------
 depends/libyarn/CMake/CodeCoverage.cmake | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/079c499d/depends/libyarn/CMake/CodeCoverage.cmake
----------------------------------------------------------------------
diff --git a/depends/libyarn/CMake/CodeCoverage.cmake b/depends/libyarn/CMake/CodeCoverage.cmake
index 48debed..226ae83 100644
--- a/depends/libyarn/CMake/CodeCoverage.cmake
+++ b/depends/libyarn/CMake/CodeCoverage.cmake
@@ -18,11 +18,7 @@
 
 # Check prereqs
 FIND_PROGRAM(GCOV_PATH gcov)
-
-IF(CMAKE_COMPILER_IS_GNUCXX)
-    FIND_PROGRAM(LCOV_PATH lcov)
-ENDIF(CMAKE_COMPILER_IS_GNUCXX)
-
+FIND_PROGRAM(LCOV_PATH lcov)
 FIND_PROGRAM(GENHTML_PATH genhtml)
 
 IF(NOT GCOV_PATH)
@@ -35,12 +31,8 @@ ENDIF(NOT CMAKE_BUILD_TYPE STREQUAL Debug)
 
 #Setup compiler options
 ADD_DEFINITIONS(-fprofile-arcs -ftest-coverage)
-
-IF(CMAKE_COMPILER_IS_GNUCXX)
-    LINK_LIBRARIES(gcov)
-ELSEIF(CMAKE_COMPILER_IS_CLANG)
-    LINK_LIBRARIES(profile_rt)
-ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs ")
+SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs ")
 
 IF((NOT LCOV_PATH) AND CMAKE_COMPILER_IS_GNUCXX)
     MESSAGE(FATAL_ERROR "lcov not found! Aborting...")


Mime
View raw message