- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As an experiment, try disabling IPO (interprocedural optimizations). If that works, then gradualy enable the IPOs
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jimdempseyatthecove
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tryturning off "Precompile Prefix Header" in Xcode build setting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - alienskinsoftware
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to Jim and Qale for your replies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - alienskinsoftware
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Thanks!
Dale
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page