summaryrefslogtreecommitdiffhomepage
path: root/ir/be/machine_triple.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-19 20:34:52 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-19 20:34:52 +0100
commit3785e21e5f017d7226fcf1778cc96a2613110e35 (patch)
tree7cb2d859b610bf47aea3865a1574ae92c2fb849a /ir/be/machine_triple.c
parent4ed304e1e3d54c20cb00bbb1c26ad7b1eadfebbb (diff)
be: Also detect MIPS and RISC-V hosts.
Diffstat (limited to 'ir/be/machine_triple.c')
-rw-r--r--ir/be/machine_triple.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir/be/machine_triple.c b/ir/be/machine_triple.c
index a50e1ad..f5ec4e7 100644
--- a/ir/be/machine_triple.c
+++ b/ir/be/machine_triple.c
@@ -119,6 +119,10 @@ ir_machine_triple_t *ir_get_host_machine_triple(void)
"i686";
#elif defined(__i386__)
"i386";
+#elif defined(__mips__)
+ "mips";
+#elif defined(__riscv)
+ "riscv32";
#elif defined(__sparc__)
"sparc";
#elif defined(__arm__)