Conversation
|
IIUC after this change libunwind will be linked dynamically for gnullvm targets @mati865 am I correct? |
|
Yes, but this was already present in 1.84.0. |
in relevant PR rustbot put it into 1.85.0 milestone |
yeah, now some executables now link libunwind.dll I'll open a separate PR for rebuilding all rust-based packages with if [[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]]; then
depends=("${MINGW_PACKAGE_PREFIX}-libunwind")
fibeing put where needed |
Ah, you are right. I had looked at the milestone at rust-lang/rust#132965 |
There is no specific need to rebuild them. Both std and unwinder are linked statically so they won't break. Regarding libunwind, it provides MINGW-packages/mingw-w64-libc++/PKGBUILD Line 155 in 0dd137f |
I meant that majority of rust-based packages here doesn't depend on any library. and |
|
and also libc++ provides gcc-libs, libunwind only depends on it in CLANG* environments. in non-clang envs libunwind is not a dependency of gcc-libs |
Right. What I meant to tell is all packages using Rust as the compiler depend or libgcc_s.dll in GNU envs and soon libunwind.dll in LLVM envs. So adding libunwind as the dependency seems weird, since they don't depend on gcc-libs in GNU envs. |
libgcc_s is linked statically IIRC
that's why I will put libunwind conditionally |
No, there are two libraries: libgcc_eh.a and libgcc_s.dll.a. First one is static, the other one is an import library for shared library. |
|
I've just checked |
|
Ah, I forgot about
I cannot without bigger changes, right that would clash with its logic for determining which unwind library to link. EDIT: Ideally both targets would share the same logic (and be controllable via |
c4548b5 to
8adb767
Compare
|
Also, there is https://github.com/rust-lang/rust/blob/28b83ee59698ae069f5355b8e03f976406f410f5/config.example.toml#L882 that restores the previous behaviour. |
|
but, why not having dynamic crt here (even when it's only for CLANG environments)? it's not hard to maintain the requirement of having libunwind installed to use rust-based binaries |
|
Only to avoid having to deal with PKGBUILDs updates. |
|
I understand you... so I'll fill an issue upstream for |
|
looks like one of the removed backport will come back again: rust-lang/rust#137460 |
config change:
-C control-flow-guardis ignored for non-gnullvm targets, so for non-clang environments it does nothing