diff options
| author | Michael Forney <mforney@mforney.org> | 2019-07-06 00:01:37 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-07-06 16:22:36 -0700 |
| commit | d7cc628c0f81cc119dd8ee02023eaae9d8f3e998 (patch) | |
| tree | 3fffd83a3a1614dd53319b26c1b0d73dfde6a5ff /pkg/cproc/config.h | |
| parent | a3b6be9a0e6dfa4e85bc49d59d7b816605fc29b3 (diff) | |
Add cproc
Diffstat (limited to 'pkg/cproc/config.h')
| -rw-r--r-- | pkg/cproc/config.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/cproc/config.h b/pkg/cproc/config.h new file mode 100644 index 00000000..a9dff3ab --- /dev/null +++ b/pkg/cproc/config.h @@ -0,0 +1,23 @@ +static char target[] = "x86_64-linux-musl"; +static char *startfiles[] = {"-l", ":crt1.o", "-l", ":crti.o"}; +static char *endfiles[] = {"-l", "c", "-l", ":crtn.o"}; +static char *preprocesscmd[] = { + "cpp", "-P", + + /* 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__", + + /* ignore attributes and extension markers */ + "-D", "__attribute__(x)=", + "-D", "__extension__=", +}; +static char *codegencmd[] = {"qbe"}; +static char *assemblecmd[] = {"as"}; +static char *linkcmd[] = {"ld", "--dynamic-linker", "/lib/ld-musl-x86_64.so.1"}; |
