• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Compiling (no linking) for a non-Apple target?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Compiling (no linking) for a non-Apple target?
      • From: Luca Ciciriello <email@hidden>
  • Prev by Date: How are .hmap files built?
  • Next by Date: Re: Compiling (no linking) for a non-Apple target?
  • Previous by thread: Re: How are .hmap files built?
  • Next by thread: Re: Compiling (no linking) for a non-Apple target?
  • Index(es):
    • Date
    • Thread