Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7693 Discussions

XCode and icc problem: always recompiles entire project

alienskinsoftware
266 Views
I'm developing a C++ application on the Mac using the XCode IDE. I recently switched from using gcc to the Intel C++ Compiler. During installation, I followed the icc documentation and set the compilation rules so that C++ files are compiled using icc (version 11.0.064).

My project compiled fine. But I found that each time I built the project, XCode would recompile the entire project instead of compiling only the files I changed. In fact, I found that XCode would recompile the entire project even if I don't make any changes to the code.

It seems like this might be an XCode problem, but it works fine when I use gcc as the compiler. Has anyone encountered this problem? I've used icc with Windows and Linux successfully, but this is the first time I've used it on the Mac. If I've missed any installation/configuration steps, please let me know.

Thanks.
0 Kudos
8 Replies
jimdempseyatthecove
Black Belt
266 Views

As an experiment, try disabling IPO (interprocedural optimizations). If that works, then gradualy enable the IPOs

Jim Dempsey
alienskinsoftware
266 Views

As an experiment, try disabling IPO (interprocedural optimizations). If that works, then gradualy enable the IPOs

Jim Dempsey

Under the Optimization group, there is an option that reads "Enable interprocedural optimization for single file compilation" which is already disabled. The other options are all defaults of icc.

I've also disabled distributed building within XCode, but the problem still persists.

I've tried building other similar applications/projects using XCode (version 3.1) and icc. I've also tried this on different Macs. They all exhibit this behavior.



Quoc-An_L_Intel
Moderator
266 Views

Tryturning off "Precompile Prefix Header" in Xcode build setting.
alienskinsoftware
266 Views
Quoting - Qale (Intel)

Tryturning off "Precompile Prefix Header" in Xcode build setting.

That seems have fixed my problem. Thanks.

Is that a known issue between XCode and icc? Or is there something in my setup that is causing precompiled headers and icc not to work together?

Quoc-An_L_Intel
Moderator
266 Views

That seems have fixed my problem. Thanks.

Is that a known issue between XCode and icc? Or is there something in my setup that is causing precompiled headers and icc not to work together?


It's a recently known limitation with Xcode and icc integration. The compiler team is awaiting further information from Apple.
alienskinsoftware
266 Views
Thanks to Jim and Qale for your replies.
justin1
Beginner
266 Views
Thanks to Jim and Qale for your replies.

Hello,

I too have had this problem -- and turning off the 'precompile prefix header' fixed (I actually had it off at the project level, but it was still enabled for some reason on my app target).

Thanks everybody!

-Justin
Dale_S_Intel
Employee
266 Views
Sorry for the long silence on this, but I think this issue has been fixed for a while. If anyone is still seeing this problem, please let us know.

Thanks!

Dale
Reply