Bug 338856

Summary: Execution of Windows's NMake shouldn't use parallel build
Product: [Applications] kdevelop Reporter: Nicolás Alvarez <nalvarez>
Component: Build tools: MakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: kfunk
Priority: NOR Keywords: junior-jobs
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:

Description Nicolás Alvarez 2014-09-06 18:55:14 UTC
Without any configuration, trying to compile on Windows/MSVC from KDevelop gives an error when running "nmake -j2", because nmake doesn't support parallel builds, and thus doesn't have a -j option.
KDevelop shouldn't pass the -j option when the build tool is nmake.
Comment 1 Kevin Funk 2015-12-30 10:27:16 UTC
Fixed.

commit 13da1b278439917a9904c051d04a3c53f0ef06df
Author: Gleb Popov <6yearold@gmail.com>
Date:   Thu Dec 17 16:50:16 2015 +0300

    Don't append -k and -j flags to command line when we are using nmake.
    Select default make tool based on which platform we are, not the compiler we using.
    On windows first try "make" (extremely rare), then "mingw32-make" and then "nmake".