Skip to content

Commit

Permalink
added debug build options
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisTarasyuk committed Mar 15, 2024
1 parent 8f54abb commit e1f8033
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions java/gandiva/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ add_jar(arrow_java_jni_gandiva_jar
src/main/java/org/apache/arrow/gandiva/exceptions/GandivaException.java
GENERATE_NATIVE_HEADERS
arrow_java_jni_gandiva_headers)
set(CMAKE_BUILD_TYPE Debug)

set(GANDIVA_PROTO_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(GANDIVA_PROTO_OUTPUT_FILES "${GANDIVA_PROTO_OUTPUT_DIR}/gandiva/types.pb.cc"
Expand Down Expand Up @@ -75,6 +76,7 @@ else()
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/symbols.map"
CXX_LINKER_SUPPORTS_VERSION_SCRIPT)
endif()
target_compile_options(arrow_java_jni_gandiva PUBLIC -g -O0)
# filter out everything that is not needed for the jni bridge
# statically linked stdc++ has conflicts with stdc++ loaded by other libraries.
if(CXX_LINKER_SUPPORTS_VERSION_SCRIPT)
Expand Down
18 changes: 9 additions & 9 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@
-DARROW_JAVA_JNI_ENABLE_C=ON
-DARROW_JAVA_JNI_ENABLE_DEFAULT=OFF
-DBUILD_TESTING=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_LIBDIR=lib/${os.detected.arch}
-DCMAKE_INSTALL_PREFIX=${arrow.c.jni.dist.dir}
</commandlineArgs>
Expand All @@ -981,7 +981,7 @@
<configuration>
<executable>cmake</executable>
<commandlineArgs>
--build java-jni --target install --config Release
--build java-jni --target install --config Debug
</commandlineArgs>
<workingDirectory>../</workingDirectory>
</configuration>
Expand Down Expand Up @@ -1038,7 +1038,7 @@
-DARROW_S3=ON
-DARROW_SUBSTRAIT=${ARROW_DATASET}
-DARROW_USE_CCACHE=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_LIBDIR=lib/${os.detected.arch}
-DCMAKE_INSTALL_PREFIX=java-dist
-DCMAKE_UNITY_BUILD=ON
Expand All @@ -1056,7 +1056,7 @@
<configuration>
<executable>cmake</executable>
<commandlineArgs>
--build cpp-jni --target install --config Release
--build cpp-jni --target install --config Debug
</commandlineArgs>
<workingDirectory>../</workingDirectory>
<skip>${cpp.dependencies.builded}</skip>
Expand All @@ -1079,7 +1079,7 @@
-DARROW_JAVA_JNI_ENABLE_ORC=${ARROW_JAVA_JNI_ENABLE_ORC}
-DARROW_JAVA_JNI_ENABLE_DEFAULT=ON
-DBUILD_TESTING=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_LIBDIR=lib/${os.detected.arch}
-DCMAKE_INSTALL_PREFIX=${arrow.dataset.jni.dist.dir}
-DCMAKE_PREFIX_PATH=${project.basedir}/../java-dist/lib/${os.detected.arch}/cmake
Expand All @@ -1098,7 +1098,7 @@
<configuration>
<executable>cmake</executable>
<commandlineArgs>
--build java-jni --target install --config Release
--build java-jni --target install --config Debug
</commandlineArgs>
<workingDirectory>../</workingDirectory>
</configuration>
Expand Down Expand Up @@ -1158,7 +1158,7 @@
-DARROW_WITH_SNAPPY=ON
-DARROW_WITH_ZLIB=ON
-DARROW_WITH_ZSTD=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_LIBDIR=lib/${os.detected.arch}
-DCMAKE_INSTALL_PREFIX=java-dist
-DCMAKE_UNITY_BUILD=ON
Expand Down Expand Up @@ -1200,7 +1200,7 @@
-DARROW_JAVA_JNI_ENABLE_ORC=${ARROW_JAVA_JNI_ENABLE_ORC}
-DARROW_JAVA_JNI_ENABLE_DEFAULT=ON
-DBUILD_TESTING=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_LIBDIR=lib/${os.detected.arch}
-DCMAKE_INSTALL_PREFIX=${arrow.dataset.jni.dist.dir}
-DCMAKE_PREFIX_PATH=${project.basedir}/../java-dist/lib/${os.detected.arch}/cmake
Expand All @@ -1217,7 +1217,7 @@
<configuration>
<executable>cmake</executable>
<commandlineArgs>
--build java-jni --target install --config Release
--build java-jni --target install --config Debug
</commandlineArgs>
<workingDirectory>../</workingDirectory>
</configuration>
Expand Down

0 comments on commit e1f8033

Please sign in to comment.