Skip to content

[android] Android seems to support constexpr mutex with NDK 19c (at least) #38686

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

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

drodriguez
Copy link
Contributor

The usage of constexpr was disabled in 2016 in #2345, but using NDK 19c,
it seems that the usage doesn't fail compiling at the moment.

The Android CI started failing after the introduction of #38562. Using constexpr seems to avoid the problem.

@buttaface: do you mind looking at this and maybe checking that the runtime is not completely broken (I tested with the compiler itself, but I have no way of testing the runtime at the moment).

…east)

The usage of constexpr was disabled in 2016 in swiftlang#2345, but using NDK 19c,
it seems that the usage doesn't fail compiling at the moment.
@drodriguez
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 3607f7a

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 3607f7a

@drodriguez
Copy link
Contributor Author

@swift-ci please test

@finagolfin
Copy link
Member

I'll try it out natively on Android and let you know.

Copy link
Member

@finagolfin finagolfin left a comment

Choose a reason for hiding this comment

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

I applied this pull to the July 30 trunk source snapshot and then built and ran the compiler validation suite natively on my Android 11 phone with the Termux packages of clang 12 and the NDK 21d sysroot: there was only one BuildSystem test regression since my previous test run with the July 6 trunk snapshot, which doesn't even touch this Runtime code and is unrelated.

Everything appears to be good, I will build out the rest of the toolchain natively on Android 11 now and run all their tests, but I don't expect anything to turn up.

@drodriguez drodriguez merged commit a8bb9ff into swiftlang:main Aug 2, 2021
@drodriguez drodriguez deleted the android-constexpr-mutex branch August 2, 2021 15:48
@finagolfin
Copy link
Member

Finished building and testing the toolchain on Android AArch64, no problem.

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.

3 participants