dlang / dub

Package and build management system for D
MIT License
673 stars 230 forks source link

/WHOLEARCHIVE cache paths are not found in lld #2676

Open MrcSnm opened 1 year ago

MrcSnm commented 1 year ago

System information

Bug Description

The flag /WHOLEARCHIVE:util.lib for example is not found when using LDC's --link-internally. It expects the full path to the library. This behavior does not happen when using MSVC Linker.

How to reproduce?

This is the reference issue: https://github.com/ldc-developers/ldc/issues/4445 test_shared_35.zip Try adding the dflag to the main dub.json --link-internally .

Expected Behavior

It should be able to find the library files without passing the absolute path.

Logs

rikkimax commented 1 year ago

Unfortunately I strongly suspect that only solution to this set of problems is: https://github.com/dlang/dub/issues/2633