code-d icon indicating copy to clipboard operation
code-d copied to clipboard

Dub arch type doesn't have any effect

Open jnms-me opened this issue 1 year ago • 0 comments

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)

jnms-me avatar Jul 16 '24 17:07 jnms-me