aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-17 20:32:10 +0100
committerlemon <lsof@mailbox.org>2025-12-17 20:32:23 +0100
commit4545928179837c75ab1357b77e5723a4fdb60b98 (patch)
tree5d864232cda0ff32f1d53d7a5a01daeb53b90873 /common.h
parent8b486bc9a1333d368538f91e046bf30f68798ce3 (diff)
nicer defaults and facilities for cross-compilation
Diffstat (limited to 'common.h')
-rw-r--r--common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/common.h b/common.h
index c3ccc63..862a271 100644
--- a/common.h
+++ b/common.h
@@ -160,9 +160,13 @@ extern struct inclpaths {
/* Target */
/**********/
-enum mcisa { ISx86_64 };
+struct targtriple {
+ enum mcarch { ISxxx, ISx86_64 } arch;
+ enum mcos { OSunknown, OSlinux } os;
+ enum mcabi { ABInone, ABIgnu, ABImusl } abi;
+};
extern const struct mctarg *mctarg;
-extern enum mcisa targ_mcisa;
+extern struct targtriple target;
void targ_init(const char *);
/*********/