Skip to content

Commit

Permalink
disable openmp; build with debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
sejanick committed Nov 15, 2023
1 parent 19f0446 commit fdc4eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set_default_configuration_release()
#-- Options
## User options
option(BUILD_C_DOC "Build documentation for C APIs using Doxygen." OFF)
option(USE_OPENMP "Build with OpenMP support." ON)
option(USE_OPENMP "Build with OpenMP support." OFF)
option(BUILD_STATIC_LIB "Build static library" OFF)
option(FORCE_SHARED_CRT "Build with dynamic CRT on Windows (/MD)" OFF)
option(RABIT_BUILD_MPI "Build MPI" OFF)
Expand Down
4 changes: 2 additions & 2 deletions jvm-packages/create_jni.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


CONFIG = {
"USE_OPENMP": "ON",
"USE_OPENMP": "OFF",
"USE_HDFS": "OFF",
"USE_AZURE": "OFF",
"USE_S3": "OFF",
Expand Down Expand Up @@ -118,7 +118,7 @@ def normpath(path):
lib_dir = os.path.join(os.pardir, 'lib')
if os.path.exists(lib_dir):
shutil.rmtree(lib_dir)
run("cmake .. " + " ".join(args) + maybe_generator)
run("cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. " + " ".join(args) + maybe_generator)
run("cmake --build . --config Release" + maybe_parallel_build)

with cd("demo/CLI/regression"):
Expand Down

0 comments on commit fdc4eeb

Please sign in to comment.