5 ms·
Why do you need to know the value of the -j parameter in a makefile?
by sillysaurus3 12y ago
Why do you need to know the value of the -j parameter in a makefile?
- saboot 12y agoIt will reduce total compile times for large projects by running make in parallel. Files dont compile faster, but make will act (compile) on N files at the same time together.
- babuskov 12y agoI didn't downvote you, but I assume why it happened: What you wrote is correct, but does not answer the question.
- jordigh 12y agoI was the one who asked the original question. My purpose was so that Mercurial's test suite could specify the amount of parallelism from the Makefile. The "test" rule in the Makefile invokes "run-tests.py". This latter script itself accepts a -j option. It's possible to invoke it directly, but this misses the second part of the "test" rule in the Makefile, which executes some tests that run-tests.py can't do.