From 44662c62f444fc50fe523d987199f6a10c9a693c Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Sun, 30 Jul 2023 18:18:25 -0700 Subject: add support for passing through sizeof & alignofs --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 36c16e9..9e8bf70 100644 --- a/main.c +++ b/main.c @@ -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); -- cgit v1.2.3