Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not merge: AsMain: run working HelloWorld asm example for iOS, since I don't have a DTK #3

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhuowei
Copy link
Contributor

@zhuowei zhuowei commented Jul 4, 2020

My other PRs should get AsMain working. I don't have a DTK, so I tested these changes by sideloading it to an iPad:

  • add these patches
  • make
  • Create a new Xcode project named HelloWorld
  • in Build Phases->Compile Sources, delete everthing
  • drag HelloWorld into the project
  • Clean build folder, build.
  • Make sure the app that's build has the right HelloWorld file.
  • Clean build folder, run.

Xcode displays "Hello World!" in the console.

I'm guessing that, since macOS on ARM and iOS are very similar, the alignment change should just work on macOS.

To support cross-compilation from x86_64:

- explicitly specify arch to be arm64
- Use xcrun to find the SDK path to the active Xcode
I don't have a DTK, so I tested this by sideloading it to an iPad:

- add this patch
- make
- Create a new Xcode project named HelloWorld
- in Build Phases->Compile Sources, delete everthing
- drag HelloWorld into the project
- Clean build folder, build.
- Make sure the app that's build has the right HelloWorld file.
- Clean build folder, run.

Xcode displays "Hello World!" in the console.
@below below force-pushed the main branch 15 times, most recently from c88f115 to 3178905 Compare July 10, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant