Skip to content

Commit

Permalink
[python] parallelize MinGW make similarly to Unix make command (#4462)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Jul 12, 2021
1 parent ef76db4 commit 5b7a6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def compile_cpp(
logger.info("Starting to compile with CMake and MinGW.")
silent_call(cmake_cmd + ["-G", "MinGW Makefiles"], raise_error=True,
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')
else:
status = 1
Expand Down

0 comments on commit 5b7a6f3

Please sign in to comment.