Skip to content

Commit

Permalink
Add support for loongarch64
Browse files Browse the repository at this point in the history
Fix build on linux/loongarch64.

Add loong64's info to loader doc

Changelog fragment

Fix the description of loong64 in specification/loader/runtime.adoc
  • Loading branch information
qiangxuhui authored and rpavlik committed Oct 21, 2024
1 parent dfe3ad6 commit dfdf0fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
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

0 comments on commit dfdf0fe

Please sign in to comment.