summaryrefslogtreecommitdiffhomepage
path: root/ir/be/machine_triple.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-19 20:35:39 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-19 20:35:39 +0100
commit4f390b4b3a79049154829e18f8b74562c1359ade (patch)
treebc5e1b5a232e9f15389590873b111382f150a6e6 /ir/be/machine_triple.c
parent3785e21e5f017d7226fcf1778cc96a2613110e35 (diff)
be: Allow compiling on unknown/unsupported hosts.
Compiling on an unknown/unsupported host architecture failed with #error. Now allow it and use "unknown" as architecture to at least enable cross compiling.
Diffstat (limited to 'ir/be/machine_triple.c')
-rw-r--r--ir/be/machine_triple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/machine_triple.c b/ir/be/machine_triple.c
index f5ec4e7..571e749 100644
--- a/ir/be/machine_triple.c
+++ b/ir/be/machine_triple.c
@@ -128,7 +128,7 @@ ir_machine_triple_t *ir_get_host_machine_triple(void)
#elif defined(__arm__)
"arm";
#else
-#error Could not determine host CPU. Consider defining HOST_TRIPLE.
+ "unknown";
#endif
const char *manufacturer =