Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: universal binaries




On 11 Jul 2006, at 05:57, Eric Albert wrote:

If it's the latter, macros should work too. If, for example, your .s file is entirely x86 assembly, wrap it in
#if __i386__
...code here...
#endif


Xcode compiles .s files with the -x assembler-with-cpp flag, which runs the C preprocessor on the file before handing it off to the assembler.

Make also sure you no longer have the "Xcode 1.1 Assembly Rule" installed (from 18 December 2003), or Xcode will not do this. This update is not uninstalled by even the uninstall-devtools.pl script, so it may still be lingering around from a distant past (December 2003, like it was on my system).


To solve this problem, delete "/Library/Application Support/Apple/ Developer Tools/Specifications/AssemblerSource.pbfilespec" (the engineer who fixed Xcode to pass -x assembler-with-cpp flag knows about this)


Jonas


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >universal binaries (From: David A Rowland <email@hidden>)
 >Re: universal binaries (From: Syd Polk <email@hidden>)
 >Re: universal binaries (From: Eric Albert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.