diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2023-07-30 18:18:25 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2023-07-30 18:18:25 -0700 |
commit | 44662c62f444fc50fe523d987199f6a10c9a693c (patch) | |
tree | b52a68243ef283471c53d224fd3f0ae87f8c0d0f /main.c | |
parent | f2297c20b69d942fd1e8fdcdd8f4d142c71de662 (diff) |
add support for passing through sizeof & alignofs
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -10,6 +10,7 @@ StringArray include_paths; bool opt_fcommon = false; bool opt_fpic; bool opt_line_numbers; +bool opt_type_builtins; static FILE *open_file(char *path) { if (!path || strcmp(path, "-") == 0) @@ -68,9 +69,11 @@ int main(int argc, char **argv) { for (int i = 1; i < argc; i++) { if (!strcmp(argv[i], "--line-numbers")) { opt_line_numbers = 1; + } else if (!strcmp(argv[i], "--type-builtins")) { + opt_type_builtins = 1; } else { assert(!base_file); - base_file = argv[1]; + base_file = argv[i]; } } cc1(base_file); |