Commit bc3d961f authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

reduce the #proc used in make.

parent f2c99ea4
...@@ -35,14 +35,14 @@ if (!use_precompile) { ...@@ -35,14 +35,14 @@ if (!use_precompile) {
# Prepare installation steps # Prepare installation steps
cmake_cmd <- "cmake" cmake_cmd <- "cmake"
build_cmd <- "make -j" build_cmd <- "make -j4"
lib_folder <- file.path(R_PACKAGE_SOURCE, "src", fsep = "/") lib_folder <- file.path(R_PACKAGE_SOURCE, "src", fsep = "/")
# Check if Windows installation (for gcc vs Visual Studio) # Check if Windows installation (for gcc vs Visual Studio)
if (WINDOWS) { if (WINDOWS) {
if (use_mingw) { if (use_mingw) {
cmake_cmd <- paste0(cmake_cmd, " -G \"MinGW Makefiles\" ") cmake_cmd <- paste0(cmake_cmd, " -G \"MinGW Makefiles\" ")
build_cmd <- "mingw32-make.exe -j" build_cmd <- "mingw32-make.exe -j4"
} else { } else {
cmake_cmd <- paste0(cmake_cmd, " -DCMAKE_GENERATOR_PLATFORM=x64 ") cmake_cmd <- paste0(cmake_cmd, " -DCMAKE_GENERATOR_PLATFORM=x64 ")
build_cmd <- "cmake --build . --target _lightgbm --config Release" build_cmd <- "cmake --build . --target _lightgbm --config Release"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment