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

Impossible to build libdexed-d.dll since v1.31 #4453

Closed
ghost opened this issue Jul 27, 2023 · 2 comments
Closed

Impossible to build libdexed-d.dll since v1.31 #4453

ghost opened this issue Jul 27, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 27, 2023

Most recent LDC2 versions fail to build on windows while this worked for years.

Here is how to reproduce

git clone https://gitlab.com/basile.b/dexed
cd dexed
git submodule update --init
cd dexed-d
dub build --compiler=ldc2

To get a huge amount of lld-link error messages.

As noted in the project-specific issue Apparently the problem started from v1.31.0

I dont say this is a bug in the toolchain... but at least that this is a breaking change that I cant handle, so any help would be welcome

@kinke
Copy link
Member

kinke commented Jul 27, 2023

This is caused by a dub v1.30 change. See dlang/dub#2660 (comment) for some context; you'd currently need to build the DLL with env var DFLAGS=-fvisibility=hidden -dllimport=none (none because you have -link-defaultlib-shared=false).

@ghost
Copy link
Author

ghost commented Jul 27, 2023

thanks, that has helped.

This issue was closed.
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

No branches or pull requests

1 participant