Are there any reasons not to use -parallelizeTargets option?
On my 2 quad-core CPUs machine, the option makes the build significantly faster,
without any noticeable issues.
Yuzo
Thomas Van Lenten
unread,
Jul 1, 2010, 11:29:42 AM7/1/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yu...@chromium.org, chromium-dev
So the answer is it used to be that that setting simply overrode what was set in the project (when it was set to false). We already have parallel targets turned on in the project. But the test below seems to indicate that might not be the case with Xcode 3.2.x. I'll follow up with a radar to see why the settings in the project doesn't seem to be honored on command line like it is honored for IDE builds.
$ sw_vers
ProductName:Mac OS X
ProductVersion:10.6.4
BuildVersion:10F569
$ sysctl -n hw.ncpu
4
$ rm -rf xcodebuild
$ time xcodebuild -project build/all.xcodeproj -configuration Debug -target All -nodistribute
...
real51m39.726s
user126m7.482s
sys26m58.144s
$ rm -rf xcodebuild
$ time xcodebuild -project build/all.xcodeproj -configuration Debug -target All -nodistribute -parallelizeTargets
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to thom...@chromium.org, chromium-dev
Hi, Thomas,
Thank you for the response.
Just as a data point, I'm using Xcode 3.1.4 on OS X 10.5.8 and I observed
by Activitiy Monitor better CPU usage (almost x16) with -parallelizeTargets .
Yuzo
Thomas Van Lenten
unread,
Jul 2, 2010, 10:30:27 AM7/2/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Yuzo Fujishima, chromium-dev
Actually, don't use this flag.
While parallel builds work in the IDE, it seems xcodebuild has issues with it. Since enabling this on the bots, we've had some bad builds, where the app bundle didn't always regenerate. In a clobber build it's easy to see, but on developers machines where you just do incremental builds, you run the risk of getting new and old code/resources, which could waste a lot of time debugging invalid builds.
TVL
Eric Seidel
unread,
Jul 2, 2010, 3:51:22 PM7/2/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to thom...@chromium.org, Yuzo Fujishima, chromium-dev