diff --git a/changes/sdk/pr.479.gh.OpenXR-SDK-Source.md b/changes/sdk/pr.479.gh.OpenXR-SDK-Source.md new file mode 100644 index 000000000..123559d52 --- /dev/null +++ b/changes/sdk/pr.479.gh.OpenXR-SDK-Source.md @@ -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. diff --git a/specification/loader/runtime.adoc b/specification/loader/runtime.adoc index 930adc665..c9eff46d3 100644 --- a/specification/loader/runtime.adoc +++ b/specification/loader/runtime.adoc @@ -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]] diff --git a/src/common/platform_utils.hpp b/src/common/platform_utils.hpp index 19cd41cbb..59b5bf2fe 100644 --- a/src/common/platform_utils.hpp +++ b/src/common/platform_utils.hpp @@ -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