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

Dub arch type doesn't have any effect #484

Open
Reavershark opened this issue Jul 16, 2024 · 0 comments
Open

Dub arch type doesn't have any effect #484

Reavershark opened this issue Jul 16, 2024 · 0 comments

Comments

@Reavershark
Copy link

Setting the dub arch type in a workspace, either through the "Switch Arch Type" command or the "d.dubArchType" setting, has no effect.

In an example project with:

dub.sdl:

name "x86test"
targetType "staticLibrary"

source/app.d:

static assert(is(size_t == uint));

extern(C)
int main() => 0;

.vscode/settings.json:

{
    "d.dubArchType": "x86"
}

Running dub build fails with Error: static assert: is(ulong == uint) is false.
Running dub build -ax86 succeeds.

Code-d will always show the same error, even when x86 is selected:
image

(Switching to dmd doesn't help)

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