aboutsummaryrefslogtreecommitdiffhomepage
path: root/targ.c
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2026-01-01 12:00:33 +0100
committer lemon<lsof@mailbox.org>2026-01-01 12:01:45 +0100
commit93194ef8447718ae78b345ce0a920bb5e6fdc090 (patch)
tree34551543dffff4b53e66ffb94839cddc70810568 /targ.c
parentd7203ea5f46fef1b41ba3b32c0b9313df3b3740c (diff)
Use a configure script, query system toolchain for default include paths
Diffstat (limited to 'targ.c')
-rw-r--r--targ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/targ.c b/targ.c
index 515bda3..4190b4f 100644
--- a/targ.c
+++ b/targ.c
@@ -62,7 +62,7 @@ parsetriple(struct targtriple *trg, const char *str)
return 1;
}
-#include "hostconfig.h"
+#include "hostconfig.h" /* run ./configure */
void
targ_init(const char *starg)
@@ -86,7 +86,7 @@ targ_init(const char *starg)
break;
}
}
- if (!t) fatal(NULL, "unsupported target: %s", starg ? starg : "(host)");
+ if (!t) fatal(NULL, "unsupported target: %s", starg ? starg : HOST_TRIPLE);
sizes[TYBOOL] = sizes[TYCHAR] = sizes[TYSCHAR] = sizes[TYUCHAR] = 1;
sizes[TYSHORT] = sizes[TYUSHORT] = 2;