Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for loongarch64 #479

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changes/sdk/pr.479.gh.OpenXR-SDK-Source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- pr.479.gh.OpenXR-SDK-Source
---
Loader: Fix build error on loong64, and add loong64 in the architecture table in the loader documentation.
5 changes: 5 additions & 0 deletions specification/loader/runtime.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ architectures and ABIs is used.
| `sparc64`
| 64-bit SPARC architecture

|`loong64`
|
| `loong64`
| 64-bit LoongArch architecture, little endian (LP64D ABI)

|===

[[android-arm32-note]]
Expand Down
2 changes: 2 additions & 0 deletions src/common/platform_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
#define XR_ARCH_ABI "riscv64"
#elif defined(__sparc__) && defined(__arch64__)
#define XR_ARCH_ABI "sparc64"
#elif defined(__loongarch64)
#define XR_ARCH_ABI "loong64"
#else
#error "No architecture string known!"
#endif
Expand Down
Loading