Skip to content

Pass .pic = true to make the code compatible with the thread sanitizier - #18

Merged
IntegratedQuantum merged 2 commits into
PixelGuys:masterfrom
IntegratedQuantum:PIC
Jul 24, 2026
Merged

Pass .pic = true to make the code compatible with the thread sanitizier#18
IntegratedQuantum merged 2 commits into
PixelGuys:masterfrom
IntegratedQuantum:PIC

Conversation

@IntegratedQuantum

Copy link
Copy Markdown
Member

The thread sanitizer seems to require position independent code in all linked libraries.

As far as I can tell there should be no measurable performance difference from enabling this, especially given that none of these libraries are performance sensitive.

Progress towards PixelGuys/Cubyz#3402

@IntegratedQuantum IntegratedQuantum changed the title Pass .pice = true to make the code compatible with the thread sanitizier Pass .pic = true to make the code compatible with the thread sanitizier Jul 23, 2026
@IntegratedQuantum
IntegratedQuantum merged commit bb44ec8 into PixelGuys:master Jul 24, 2026
1 check passed
@IntegratedQuantum
IntegratedQuantum deleted the PIC branch July 24, 2026 18:16
IntegratedQuantum added a commit to PixelGuys/Cubyz that referenced this pull request Jul 24, 2026
- [x] Update the Cubyz-libs to include
PixelGuys/Cubyz-libs#18
- [x] ~~Force someone else to test it~~ (I couldn't force them, they did
so willingly)
- [x] fix release failure -> the libs need to be built in release to use
release

Notes the thread sanitizer does not work on
- Windows
- Nvidia drivers
- Linux Kernel version after kernel 7.1
llvm/llvm-project#194116 fixed in Zig
https://codeberg.org/ziglang/zig/commit/c855c61432f484a1e4016366d7d178bb90d3e552

What does it work on then?
- It works on my machine :​P

fixes #3402
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.

1 participant