[libcxxabi] r211751 - Fix building for iOS

Nick Kledzik kledzik at apple.com
Thu Jun 26 12:14:56 PDT 2014


On Jun 25, 2014, at 10:04 PM, Nico Weber <thakis at chromium.org> wrote:
> 
> Is there some good way to test the iOS build locally?

Nothing good ;-(

Internally we have an xcode project we copy into the libcxxabi project sources to build.  But it only actually builds for iOS if you command line build it with a bunch of special options that only our internal build system knows how to set up…

You might be able to add a mode to the buildit script to build with -arch armv7 and -miphoneos-version-min=7.0 and -isysroot pointing to an iOS SDK. 

If libcxxabi was CMake based, I could probably tweak that to build for iOS…

-Nick


> On Wed, Jun 25, 2014 at 5:25 PM, Nick Kledzik <kledzik at apple.com> wrote:
> Author: kledzik
> Date: Wed Jun 25 19:25:33 2014
> New Revision: 211751
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=211751&view=rev
> Log:
> Fix building for iOS
> 
> Modified:
>     libcxxabi/trunk/src/Unwind/UnwindRegistersRestore.S
> 
> Modified: libcxxabi/trunk/src/Unwind/UnwindRegistersRestore.S
> URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/UnwindRegistersRestore.S?rev=211751&r1=211750&r2=211751&view=diff
> ==============================================================================
> --- libcxxabi/trunk/src/Unwind/UnwindRegistersRestore.S (original)
> +++ libcxxabi/trunk/src/Unwind/UnwindRegistersRestore.S Wed Jun 25 19:25:33 2014
> @@ -308,7 +308,7 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9li
>    ldp    x0, x1,  [x0, #0x000]  ; restore x0,x1
>    ret    lr            ; jump to pc
> 
> -#elif __arm__
> +#elif __arm__ && !__APPLE__
> 
>  @
>  @ void libunwind::Registers_arm::restoreCoreAndJumpTo()
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140626/c3c40539/attachment.html>


More information about the cfe-commits mailing list