summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:18:25 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:18:25 -0700
commit44662c62f444fc50fe523d987199f6a10c9a693c (patch)
treeb52a68243ef283471c53d224fd3f0ae87f8c0d0f /main.c
parentf2297c20b69d942fd1e8fdcdd8f4d142c71de662 (diff)
add support for passing through sizeof & alignofs
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback