hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject hadoop git commit: HDFS-9487. libhdfs++ Enable builds with no compiler optimizations. Contributed by Bob Hansen.
Date Thu, 17 Dec 2015 21:44:58 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-8707 9b280cc29 -> 62abdbaae


HDFS-9487.  libhdfs++ Enable builds with no compiler optimizations.  Contributed by Bob Hansen.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/62abdbaa
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/62abdbaa
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/62abdbaa

Branch: refs/heads/HDFS-8707
Commit: 62abdbaae4a561210fae7e896579535978903df6
Parents: 9b280cc
Author: James <jhc@apache.org>
Authored: Thu Dec 17 16:43:54 2015 -0500
Committer: James <jhc@apache.org>
Committed: Thu Dec 17 16:43:54 2015 -0500

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml             | 2 ++
 .../src/main/native/libhdfspp/CMakeLists.txt                      | 3 +++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/62abdbaa/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml
index 8ad6313..60045da 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml
@@ -177,6 +177,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
                         <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
                         <!-- Make sure libhadoop.so is on LD_LIBRARY_PATH. -->
                         <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH}:${project.build.directory}/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib"/>
+                        <arg line="${native_ctest_args}"/>
                       </exec>
                     </target>
                   </target>
@@ -232,6 +233,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
                       <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
                       <!-- Make sure libhadoop.so is on LD_LIBRARY_PATH. -->
                       <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH}:${project.build.directory}/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib"/>
+                      <arg line="${native_ctest_args}"/>
                     </exec>
                   </target>
                 </configuration>

http://git-wip-us.apache.org/repos/asf/hadoop/blob/62abdbaa/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
index 6338d5d..6744259 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/CMakeLists.txt
@@ -38,6 +38,9 @@ endif (REQUIRE_VALGRIND AND MEMORYCHECK_COMMAND MATCHES "MEMORYCHECK_COMMAND-NOT
 
 add_definitions(-DASIO_STANDALONE -DASIO_CPP11_DATE_TIME)
 
+# Disable optimizations if compiling debug
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
 
 if(UNIX)
 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -std=c++11 -g -fPIC -fno-strict-aliasing")


Mime
View raw message