Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 21:15:03 +0100
From:      =?ISO-8859-1?Q?Christoffer_Str=F6mblad?= <cs@wa-sp.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Compiling utilizing multiple CPUs
Message-ID:  <478D1447.2050401@wa-sp.com>
In-Reply-To: <4EA98CBC-8BE3-4195-82A7-3E63C0D70593@mac.com>
References:  <478BF671.7010104@wa-sp.com> <4EA98CBC-8BE3-4195-82A7-3E63C0D70593@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.
|

- --
Christoffer Stromblad
CEO, WASP

Tel: 44(0)207 043 5190
http://www.wa-sp.com

Pub-key: http://www.wa-sp.com/public_keys/cs_wa-sp.com.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjRRHUBO5v5qUXoMRAuA9AKC4cYkLwGkW5m3dc/Gfje4rUyn//gCdGyhs
1lk8H0U7FB6ulJe3pJ3Tg3g=
=j2QV
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478D1447.2050401>