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

Add support for Android NDK r21 #367

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Add support for Android NDK r21 #367

merged 1 commit into from
Aug 18, 2023

Conversation

mrobinson
Copy link
Member

This is the essentially the NDK that the version of SpiderMonkey
supports. This makes a few changes to the SpiderMonkey source as well:

  1. Pulls in a change from a more recent version so that the correct
    version of the clock functions are used.
  2. Disables all attempts by SpiderMonkey to set the sysroot, Android
    platform includes, and the STL. Modern NDKs don't require these
    flags and they often just break mysteriously if not used perfectly.
    SpiderMonkey upstream is starting to use them less, but is still
    pretty far in the past. This makes everything about the Android build
    simpler.

In addition, some compilation errors for 32-bit machines are fixed.

@mrobinson mrobinson force-pushed the android-build branch 6 times, most recently from 15a22fb to 46d67eb Compare August 17, 2023 13:30
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

This is the essentially the NDK that the version of SpiderMonkey
supports. This makes a few changes to the SpiderMonkey source as well:

1. Pulls in a change from a more recent version so that the correct
   version of the clock functions are used.
2. Disables all attempts by SpiderMonkey to set the sysroot, Android
   platform includes, and the STL. Modern NDKs don't require these
   flags, they often just break mysteriously if not used perfectly.
   SpiderMonkey upstream is starting to use them less, but is still
   pretty far in the past. This makes everything about the Android build
   simpler.

In addition, some compilation errors for 32-bit machines are fixed.
@mrobinson mrobinson added this pull request to the merge queue Aug 18, 2023
Merged via the queue into master with commit 071ccca Aug 18, 2023
12 checks passed
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.

2 participants