• 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
Re: Multi-arch and ARM64?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-arch and ARM64?


  • Subject: Re: Multi-arch and ARM64?
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 14 Oct 2013 08:03:49 -0500

On 12 Oct 2013, at 5:53 PM, Jeffrey Walton <email@hidden> wrote:

> This is related to "ARM64 and -mios-version-min=7.0?",
> http://lists.apple.com/archives/xcode-users/2013/Oct/msg00074.html.
>
> Is it possible to specify multiple architectures, and bind
> -mios-version-min=7.0 to just ARM64? For example:
>
>    clang++ -arch armv7 -arch armv7s -arch arm64 ...
>
> Without -mios-version-min=7.0, the compile fails due to ARM64.
>
> With -mios-version-min=7.0, I believe I am saying ARMv7 and ARMv7s
> need iOS 7 (which is obviously not correct).

[If this is no longer the case, I'll be very happy to be corrected.]

You can't do it with the graphical Build Settings table, at least in Xcode 4.x; it allows conditional settings only on the basis of SDK. You can, however, do it with a configuration (.xcconfig) file.

You can impose various conditions on GCC_VERSION (I've got to find a better example) by including something like this:

(1) GCC_VERSION = com.apple.compilers.llvm.clang.1_0
(2) GCC_VERSION[sdk=iphonesimulator4.3][arch=*] =
						com.apple.compilers.llvmgcc42
(3) GCC_VERSION[sdk=iphoneos4.3][arch=armv6] = 4.2

You don't have to export your whole build settings, but you can do it with

	xcodebuild -showBuildSettings

. You'll have to figure out the constants. Quick help on existing settings will do the setting name and many of the possible settings. Grepping the showBuildSettings output for ARCH should get you the architectures. You can get a roster of SDKs by running the command

	xcodebuild -showsdks


	— F


 _______________________________________________
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


References: 
 >Multi-arch and ARM64? (From: Jeffrey Walton <email@hidden>)

  • Prev by Date: Re: ARM64 and -mios-version-min=7.0?
  • Next by Date: Re: ARM64 and -mios-version-min=7.0?
  • Previous by thread: Multi-arch and ARM64?
  • Next by thread: Abandonware
  • Index(es):
    • Date
    • Thread