Skip to content

Build SwiftShader native package for win-arm64 #2066

Closed
@alexrp

Description

@alexrp

This can't be done currently because of errors like this:

D:\a\Silk.NET\Silk.NET\build\submodules\SwiftShader\third_party\llvm-10.0\configs\windows\include\llvm\Config\llvm-config.h(44,1): error C1189: #error:  "unknown architecture" [D:\a\Silk.NET\Silk.NET\build\submodules\SwiftShader\build\third_party\llvm-10.0\llvm.vcxproj]

This is happening because of this code in SwiftShader's llvm-config.h which isn't handling Arm64:

https://github.com/google/swiftshader/blob/62c59c41e194c288c06739788bb0aad3c86b19bf/third_party/llvm-10.0/configs/windows/include/llvm/Config/llvm-config.h#L17-L23

Which then causes this error to happen:

https://github.com/google/swiftshader/blob/62c59c41e194c288c06739788bb0aad3c86b19bf/third_party/llvm-10.0/configs/windows/include/llvm/Config/llvm-config.h#L44

This should be fairly easy to patch on our end.

While doing this, we should also consider building SwiftShader with LLVM 16 instead of 10 (the default).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions