Compiling (no linking) for a non-Apple target?
Compiling (no linking) for a non-Apple target?
- Subject: Compiling (no linking) for a non-Apple target?
- From: Rick Mann <email@hidden>
- Date: Tue, 21 May 2013 22:16:06 -0700
I use Xcode as an editor for my non-Mac/iOS projects as well, targeting small embedded processors. Usually I build via Makefile and a version of GCC for my target.
But a lot of the code is generic C/C++. With some judicious use of the preprocessor, I should be able to compile the bulk of it with clang, and thereby get code completion support from Xcode, too.
Note that it doesn't have to link, just compile with clang. I'll edit my headers as necessary to avoid target-specific extensions to the language.
Unfortunately, the headers used by my target conflict with a lot of standard C headers (stdint.h, for example). Is it possible to configure Xcode to ignore all the OS X & iOS SDKs, and give it search paths for my target, and have compile? I tried removing the BaseSDK, but it presume an empty Base SDK means "current OS".
Thanks,
--
Rick
_______________________________________________
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