summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeijia Wang <contact@weijia.wang>2025-09-12 22:33:31 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2025-09-12 23:08:44 +0200
commitb4d568b7aa2db5525f63b1bc9486dc5e2ed36bd0 (patch)
tree0205ca0a048d93862126673cc0902b54cdf16497
parentf895ea31d76fda7f7c135c028e86d2957663038c (diff)
Add support for Linux/LoongArchHEADmaster
Part-of: <https://gitlab.freedesktop.org/xorg/util/imake/-/merge_requests/15>
-rw-r--r--imakemdep.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/imakemdep.h b/imakemdep.h
index e32a0f7..d522ec3 100644
--- a/imakemdep.h
+++ b/imakemdep.h
@@ -435,6 +435,15 @@ const char *cpp_argv[ARGUMENTS] = {
"-D__riscv_xlen=64",
# endif
# endif
+# ifdef __loongarch__
+ "-D__loongarch__",
+# if (__loongarch_grlen == 32)
+ "-D__loongarch_grlen=32",
+# endif
+# if (__loongarch_grlen == 64)
+ "-D__loongarch_grlen=64 -D__loongarch_lp64",
+# endif
+# endif
# ifdef __GNUC__
"-traditional",
# endif