Re: PBXNumberOfParallelBuildSubtasks and Xcode4
Re: PBXNumberOfParallelBuildSubtasks and Xcode4
- Subject: Re: PBXNumberOfParallelBuildSubtasks and Xcode4
- From: Serge MONTAIGU <email@hidden>
- Date: Wed, 20 Apr 2011 10:52:01 +0200
Hello j o a r
Thank you for IDEBuildOperationMaxNumberOfConcurrentCompileTasks !!!
Setting this number to 12 speeds up the compile time dramatically (from 40 mn to 4 mn !!) but I will buy more memory to upgrade my machine to 16Gb.
Yes I did tried to switch to LLVM 2.0 but unfortunately I stall on this link error :
ld: bad codegen, pointer diff in __ZN6PListeI10DrawObjectEC2Ess to global weak symbol __ZTV6PListeI10DrawObjectE for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Developer/usr/bin/clang++ failed with exit code 1
demangling the symbol with c++filt I obtain :
ld: bad codegen, pointer diff in PListe<DrawObject>::PListe(short, short) to global weak symbol vtable for PListe<DrawObject> for architecture i386
I spent a couple of day trying to :
+ changing the way symbol are exported with __attribute__((visibility("default"))) after some class declaration
+ adding or removing virtual functions
+ removing inlines for constructors in the related templates
+ desperately pray to God (LLVM God of course)
but I had to switch back to LLVM GCC 4.2 to be able to compile again...
any idea ?
Serge
Le 20 avr. 2011 à 01:00, Joar Wingfors a écrit :
> Hello Serge,
>
> That's 1/3 GB of RAM per logical CPU in your machine (not counting memory used by the system itself, and other running apps). That's typically not enough for running GCC, in particular not if you're compiling C++. So yes, I'd agree with your statement about only having 8GB of RAM!
>
> This is the new preference key for controlling the amount of concurrency:
>
> IDEBuildOperationMaxNumberOfConcurrentCompileTasks
>
> In addition, you could consider switching over to our new LLVM compiler, that besides being better and faster and all around more awesome, also uses less memory compared with GCC.
>
> j o a r
>
>
> On 19 apr 2011, at 02.57, Serge MONTAIGU wrote:
>
>> Hi everybody
>>
>> I'm using Xcode 4 and I'm very happy with the new "one window" approach and many other things.
>>
>> Unfortunately It is very slow to compile with GCC 4.2 because I can not control the number of parallel build subtasks (PBXNumberOfParallelBuildSubtasks in the plist). I have a brand new Mac Pro 5,1, Xcode 4 want to compile 24 files at the same time but my project is very big and I have "only" 8Gb of memory. All these cc1plus running together are exhausting my machine and the build time increase exponentially.
>>
>> In Xcode 3.x I used to set PBXNumberOfParallelBuildSubtasks to 8 and that was fine but it seems Xcode 4 just ignore this setting in com.apple.dt.Xcode.plist
>>
>> Does anyone know if there is a replacement key for this ?
>>
>> Thank you
>>
>> Serge Montaigu
>> IGNEspace _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden