Skip to content

Commit

Permalink
Add -l option
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Dec 7, 2020
1 parent b0109a3 commit bc25279
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ static void parse_args(int argc, char **argv) {
continue;
}

if (!strncmp(argv[i], "-l", 2)) {
strarray_push(&input_paths, argv[i]);
continue;
}

if (!strcmp(argv[i], "-cc1-input")) {
base_file = argv[++i];
continue;
Expand Down Expand Up @@ -495,6 +500,11 @@ int main(int argc, char **argv) {
for (int i = 0; i < input_paths.len; i++) {
char *input = input_paths.data[i];

if (!strncmp(input, "-l", 2)) {
strarray_push(&ld_args, input);
continue;
}

char *output;
if (opt_o)
output = opt_o;
Expand Down

0 comments on commit bc25279

Please sign in to comment.