Skip to content

llvm-config --link-static does not specify ntdll.lib import lib on Windows #145091

Open
@graphitemaster

Description

@graphitemaster

When linking against LLVM statically, the llvm-config tool with --link-static does not specify the ntdll.lib import library despite LLVMSupport requiring ntdll since Support/ErrorHandling.cpp depends on RtlGetLastNtStatus. Attempting to link anything with it will be met with the following error

error: undefined symbol: __declspec(dllimport) RtlGetLastNtStatus
 >>> referenced by LLVMSupport.lib(ErrorHandling.cpp.obj)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions