Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Drop arm as a default CPU ABI #1894

Closed
wants to merge 1 commit into from

Conversation

LegNeato
Copy link
Contributor

@LegNeato LegNeato commented May 23, 2018

With the latest version of the NDK, arm is not supported.

Fixes #1890.

This could possibly be a breaking change for people who have not set CPU ABI and are not using the latest NDK---before their builds would have arm, after updating Buck they will no longer and might wonder what happened. Open to strategies to dealing with that, though they can always just add arm to cpu_abis in their config to fix any bustage. While buck could detect this case, it seems like a bit too much magic to be worth it.

Note that this is somewhat related to #1889 but not exactly.

@LegNeato
Copy link
Contributor Author

LegNeato commented May 23, 2018

Hold up, missed some tests. Will fix.

Edit: Fixed.

@facebook-github-bot
Copy link
Contributor

@LegNeato has updated the pull request.

@facebook-github-bot
Copy link
Contributor

@LegNeato has updated the pull request.

@facebook-github-bot
Copy link
Contributor

@LegNeato has updated the pull request.

@facebook-github-bot
Copy link
Contributor

@LegNeato has updated the pull request.

With the latest version of the NDK, `arm` is not supported.

Fixes facebook#1890.
@facebook-github-bot
Copy link
Contributor

@LegNeato has updated the pull request.

Copy link

@styurin styurin left a comment

Choose a reason for hiding this comment

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

Let's make the list of ABI depend on the NDK version. This would prevent an issue with existing clients that do not use v17.

Also, I think we should keep all the tests as they were before, but add assume checks to verify the version of NDK and disable tests that do not work with v17. We should also provide modified versions of those tests for v17.

@LegNeato
Copy link
Contributor Author

LegNeato commented May 25, 2018

@styurin I am not sure I agree about not modifying the tests...if you look at them they are not testing anything arm specific, it just happened to be in the default arch set and thus was chosen to check out of simplicity or completeness. Changing them to check armv7 keeps the intent of the tests the same while allowing people with either v17 or earlier NDKs to run the tests. It also means we don't have to duplicate a ton of tests or abstract out logic to test two sides of the NDK arch divide.

I of course will add tests to check the new behavior of switching defaults based on NDK versions.

@LegNeato
Copy link
Contributor Author

Ping @styurin

@styurin
Copy link

styurin commented Jun 12, 2018

Sounds good.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@styurin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@kageiit
Copy link
Contributor

kageiit commented Jun 29, 2018

@styurin any update on the import?

@styurin
Copy link

styurin commented Jun 29, 2018

I'm working on it, there is another issue with NDK 16 which should be resolved before allowing NDK 17.

@LegNeato
Copy link
Contributor Author

I believe this is actually still on me...I was waiting for my other PR to land before I rebased and fixed comments

@styurin
Copy link

styurin commented Jul 5, 2018

Implemented in 4ef8e96.

@styurin styurin closed this Jul 5, 2018
@LegNeato
Copy link
Contributor Author

LegNeato commented Jul 6, 2018

Sweet, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUCK crashes on the latest NDK
4 participants