Compiling utilizing multiple CPUs
cs at wa-sp.com
Tue Jan 15 12:15:03 PST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Yeah I figured that I would be able to pass the -j flag to make but was
curious of whether it was possible to do globally.
I realize that some ports might not be particularily happy about it.
Let's introduce another ports flag for safe multithread compiling,
MULTISAFE= YES ;)
If the flag is set to no it will default to just one job, otherwise
utilize whatever the value is of -j.
Anyways, thanks for your reply.
Chuck Swiger skrev:
| On Jan 14, 2008, at 3:55 PM, Christoffer Strömblad wrote:
|> Having looked through much of the available documentation one thing
|> continues to elude me... Is it possible to specify globally how many
|> CPUs are available when compiling a port? When I compile a port now it
|> seems as if only one CPU is used, even though more are available.
| The quality of the Makefiles or similar used by individual ports varies,
| and many of them are not safe to compile in a multithreaded fashion.
| You can set "MAKEFLAGS=-j3" or similar in your environment, but it's
| really not recommended.
Tel: 44(0)207 043 5190
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the freebsd-ports