diff options
author | dzwdz | 2023-08-27 02:06:32 +0200 |
---|---|---|
committer | dzwdz | 2023-08-27 02:06:32 +0200 |
commit | e43939bcc6123e02314aa403eef94d5ace441f7f (patch) | |
tree | ac0cea10e8708ae1a6a7a400257c4bc59175a91f /ports/cproc/files/config.h | |
parent | 1f938c20b4a82ca1267ab9a1ec0922878a21ca6b (diff) |
ports: qbe, cproc :^)
Diffstat (limited to 'ports/cproc/files/config.h')
-rw-r--r-- | ports/cproc/files/config.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/cproc/files/config.h b/ports/cproc/files/config.h new file mode 100644 index 0000000..18b2b1e --- /dev/null +++ b/ports/cproc/files/config.h @@ -0,0 +1,26 @@ +static const char target[] = "x86_64-camellia"; +static const char *const startfiles[] = {"-l", ":crt0.o"}; +static const char *const endfiles[] = {"-l", "c"}; +static const char *const preprocesscmd[] = { + "cpp", + + /* clear preprocessor GNU C version */ + "-U", "__GNUC__", + "-U", "__GNUC_MINOR__", + + /* we don't yet support these optional features */ + "-D", "__STDC_NO_ATOMICS__", + "-D", "__STDC_NO_COMPLEX__", + "-D", "__STDC_NO_VLA__", + "-U", "__SIZEOF_INT128__", + + /* we don't generate position-independent code */ + "-U", "__PIC__", + + /* ignore attributes and extension markers */ + "-D", "__attribute__(x)=", + "-D", "__extension__=", +}; +static const char *const codegencmd[] = {"qbe"}; +static const char *const assemblecmd[] = {"as"}; +static const char *const linkcmd[] = {"ld", "-no-dynamic-linker", "-pie"}; |