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

Feature/support arm 64 epmdj 10882 #168

Merged
merged 30 commits into from
Oct 23, 2024
Merged

Conversation

bodyangug
Copy link
Contributor

No description provided.

@bodyangug bodyangug self-assigned this Aug 1, 2024
@bodyangug bodyangug marked this pull request as draft August 1, 2024 16:56
@bodyangug bodyangug marked this pull request as ready for review August 23, 2024 12:47
@@ -69,6 +69,9 @@ tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
Copy link
Member

Choose a reason for hiding this comment

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

reason for adding this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I delete it, Gradle will throw an error about being unable to override the generated sources, so I added it to fix the issue.

Copy link
Collaborator

@epamrsa epamrsa Aug 23, 2024

Choose a reason for hiding this comment

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

Please double check, sources should not be overwritten during the fine configured build.

UPD: fixed

includeSharedLib("interceptor-hook")
includeSharedLib("interceptor-http")
// FYI: Interceptor not patched for macOS ARM64 architecture.
//includeSharedLib("interceptor-hook")
Copy link
Member

Choose a reason for hiding this comment

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

haven't we had it excluded from the build by default anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have to ask @epamrsa.
Comment it out because the build fails with these modules.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It will totally disable build with drill-hook. Wrong solution :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as it was discussed: interceptor-hook and interceptor-http can be commented

@@ -45,19 +46,24 @@ kotlin {
compilations["test"].cinterops.create("test_stubs")
binaries.sharedLib(nativeAgentLibName, setOf(DEBUG))
}
targets {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why was targets block deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

due to new kotlin versions: "The presets API is deprecated and will be removed in future releases."

@@ -145,7 +155,9 @@ kotlin {
from("src/native${it.compilationName.capitalize()}/kotlin")
into("src/${it.target.targetName}${it.compilationName.capitalize()}/kotlin/gen")
}
it.compileKotlinTask.dependsOn(copyNativeClasses.get())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why? Possibly this will broke build process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

compileKotlinTask was deprecated. Let me try to rewrite with compileTaskProvider

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reworked

@@ -178,6 +190,7 @@ kotlin {
"mu",
)
val runtimeJar by registering(ShadowJar::class) {
dependsOn(named<KotlinCompile>("compileKotlinJvm"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why search by name is used instead of predefined variables (compileKotlinTask)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

compileKotlinTask was deprecated. Let me try to rewrite with compileTaskProvider

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reworked

includeSharedLib("interceptor-hook")
includeSharedLib("interceptor-http")
// FYI: Interceptor not patched for macOS ARM64 architecture.
//includeSharedLib("interceptor-hook")
Copy link
Collaborator

Choose a reason for hiding this comment

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

It will totally disable build with drill-hook. Wrong solution :)

@@ -69,6 +69,9 @@ tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
Copy link
Collaborator

@epamrsa epamrsa Aug 23, 2024

Choose a reason for hiding this comment

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

Please double check, sources should not be overwritten during the fine configured build.

UPD: fixed

@bodyangug bodyangug marked this pull request as draft August 27, 2024 09:09
@iryabov iryabov marked this pull request as ready for review September 30, 2024 12:39
Copy link

sonarcloud bot commented Oct 23, 2024

@iryabov iryabov changed the base branch from merge/v0.9.0 to main October 23, 2024 15:39
@iryabov iryabov merged commit 60cb3bf into main Oct 23, 2024
5 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.

4 participants