Skip to content

[NativeAOT-LLVM] Support LinkerFlavor #3236

@SingleAccretion

Description

@SingleAccretion

It has been a persistent problem that it is difficult to produce core modules for our WASI target.

However, this can be overcome via -fuse-ld=lld (see https://github.com/llvm/llvm-project/blob/20d3aa944fb5cdbeb7e855fcd0800abd6d4a7842/clang/lib/Driver/ToolChains/WebAssembly.cpp#L46-L50). This won't work as-is, though, as we also pass some --component-types by default, which needs to be fixed up in some manner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-LLVMLLVM generation for Native AOT compilation (including Web Assembly)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions