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

Flag for Native IR integration tests #363

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

mvicsokolova
Copy link
Collaborator

@mvicsokolova mvicsokolova commented Nov 10, 2023

Native IR transformations are now available: compiler plugin implements atomic operations via K/N stdlib atomic intrinsics. Atomic arrays, delegated properties and traces are supported by the compiler plugin as well.
To enable Native IR transformations, set the flag kotlinx.atomicfu.enableNativeIrTransformations=true in the gradle.properties file.

See #261

@mvicsokolova mvicsokolova changed the base branch from develop to integration-tests November 10, 2023 20:05
@mvicsokolova mvicsokolova force-pushed the native-ir-flag-with-integration-tests branch 5 times, most recently from d366187 to 543f0b1 Compare November 13, 2023 11:44
Base automatically changed from integration-tests to develop November 13, 2023 12:28
@mvicsokolova mvicsokolova force-pushed the native-ir-flag-with-integration-tests branch from 543f0b1 to 28c7762 Compare November 13, 2023 12:30
@mvicsokolova
Copy link
Collaborator Author

Rebased on the fresh develop with merged integration tests

@mvicsokolova mvicsokolova force-pushed the native-ir-flag-with-integration-tests branch from ad897c1 to 2d36353 Compare November 14, 2023 16:33
@mvicsokolova mvicsokolova merged commit c9972c7 into develop Nov 15, 2023
1 check passed
@mvicsokolova mvicsokolova deleted the native-ir-flag-with-integration-tests branch November 15, 2023 08:42
lukellmann added a commit to kordlib/kord that referenced this pull request Mar 2, 2024
I added this property in #894 to ensure we'd be using the AtomicFU
compiler plugin [1] for native when #855 is merged. However, it seems
like a typo slipped through: I think I copied the property from the
description of the PR that added this feature to AtomicFU [2]. Turns out
there was a typo in that description. The property is
kotlinx.atomicfu.enableNativeIrTransformation, not
kotlinx.atomicfu.enableNativeIrTransformations as can be seen in the
source code [3].

[1] https://github.com/Kotlin/kotlinx-atomicfu/blob/0.23.1/README.md#atomicfu-compiler-plugin
[2] Kotlin/kotlinx-atomicfu#363
[3] https://github.com/Kotlin/kotlinx-atomicfu/blob/0.23.1/atomicfu-gradle-plugin/src/main/kotlin/kotlinx/atomicfu/plugin/gradle/AtomicFUGradlePlugin.kt#L38
@lukellmann
Copy link

There is a typo in the description of this PR, the property is named kotlinx.atomicfu.enableNativeIrTransformation, not kotlinx.atomicfu.enableNativeIrTransformations (no trailing s). See kordlib/kord@e613c0a.

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.

None yet

3 participants