build(native): compile x86_64 Linux lib with -mtls-dialect=gnu2#596
build(native): compile x86_64 Linux lib with -mtls-dialect=gnu2#596nsavoire wants to merge 1 commit into
Conversation
Use TLS descriptors as required by thread context.
|
CI Test ResultsRun: #27419281211 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled Failed Testsglibc-amd64/debug / 8-orclJob: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 25Job: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 8-j9Job: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 11-j9Job: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 17-graalJob: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 25-graalJob: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 17-j9Job: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 17Job: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 8-ibmJob: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 21-graalJob: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 11Job: View logs No detailed failure information available. Check the job logs. glibc-amd64/debug / 21Job: View logs No detailed failure information available. Check the job logs. Summary: Total: 32 | Passed: 19 | Failed: 13 Updated: 2026-06-12 13:55:34 UTC |
What
Compile the profiler shared library with
-mtls-dialect=gnu2on x86_64 Linux.Why
TLS descriptors (GNU2 dialect) is required for thread context sharing.
How
commonCompilerArgs().commonLinuxCompilerArgs()helper that appends-mtls-dialect=gnu2gated on the x86_64 architecture.Testing
./gradlew -p build-logic :conventions:compileKotlin— build-logic plugin compiles../gradlew buildon macOS/ARM64 succeeds; verified the flag is absent from the local native compile command (correct, since it's x86_64-Linux-only). The x86_64 Linux path is exercised in CI.🤖 Generated with Claude Code