Skip to content

Dub arch type doesn't have any effect #484

@jnms-me

Description

@jnms-me

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions