Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: On some Linux, cc expects the input argument to come before other options #4

Merged
merged 5 commits into from
Nov 16, 2020

Conversation

Hywan
Copy link
Owner

@Hywan Hywan commented Nov 13, 2020

For instance, the following will fail:

cc -I<…> -L<…> -Wl,l<…> -o test test.c

But the following will work:

cc test.c -I<…> -L<…> -Wl,l<…> -o test

This patch puts the input path first, before everything.

…her options.

For instance, the following will fail:

```
cc -I<…> -L<…> -Wl,l<…> -o test test.c
```

But the following will work:

```
cc test.c -I<…> -L<…> -Wl,l<…> -o test
```

This patch puts the input path first, before everything.
@Hywan Hywan merged commit fab8151 into master Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant