Unverified Commit 5b7a6f3e authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[python] parallelize MinGW make similarly to Unix make command (#4462)

parent ef76db45
...@@ -158,7 +158,7 @@ def compile_cpp( ...@@ -158,7 +158,7 @@ def compile_cpp(
logger.info("Starting to compile with CMake and MinGW.") logger.info("Starting to compile with CMake and MinGW.")
silent_call(cmake_cmd + ["-G", "MinGW Makefiles"], raise_error=True, silent_call(cmake_cmd + ["-G", "MinGW Makefiles"], raise_error=True,
error_msg='Please install CMake and all required dependencies first') error_msg='Please install CMake and all required dependencies first')
silent_call(["mingw32-make.exe", "_lightgbm", f"-I{build_dir}"], raise_error=True, silent_call(["mingw32-make.exe", "_lightgbm", f"-I{build_dir}", "-j4"], raise_error=True,
error_msg='Please install MinGW first') error_msg='Please install MinGW first')
else: else:
status = 1 status = 1
......
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