Sunday, July 6th 2008, 3:04pm UTC+1

You are not logged in.

  • Login
  • Register

1

Tuesday, April 29th 2008, 12:52am

make and -j switch under Windows

Hi, my question is maybe not directly connected to Qt, but do anybody knows how to under MS Windows run make in such a way that several cpp files could be compiled in parallel? The problem is that make compiles only one file a time so my second core is boring, where as it could be used for shortening the compilation time.
When I specify make –j I have an error:
Mingw32-make: Do not specify –j or –jobs if sh.exe is not available.
Where I can get sh.exe for windows?
TIA.
  • Go to the top of the page

2

Tuesday, May 6th 2008, 10:10pm

RE: make and -j switch under Windows

divide up the work. 2 makefiles running in different processes. At the end, have one makefile verify the contents that the other makefile built, then do your linking from only one makefile
  • Go to the top of the page

3

Tuesday, May 6th 2008, 10:37pm

RE: make and -j switch under Windows

No a nice solution, besides of that I generate makefiles using qmake, so in that case I must switch from automatically generated makefiles to manually generated. So I will save some time on compilation and loose even more writing makefiles :(
But thanks for response.
  • Go to the top of the page

Rate this thread