Files
compiler-explorer/lib/compilers
narpfel 355d49ec63 [c2rust]: allow passing arguments to clang (#7583)
To pass arguments to `clang` (such as `-std=...`), `--` must be used to
separate these arguments from the arguments to `c2rust`:

```console
$ ./c2rust-transpile --help
transpile 0.20.0
[...]
USAGE:
    c2rust-transpile [OPTIONS] [COMPILE_COMMANDS]... [-- <EXTRA_CLANG_ARGS>...]
```

However, when doing this, the input file must be passed *before* the
`--`. Also, when libraries are enabled, the include and link flags must
be passed to `clang` (but duplicate `--` are not allowed).

Example for passing command line arguments:
https://godbolt.org/z/eqfa3T7WY
Example for activating a library: https://godbolt.org/z/srh55Y1hY
2025-04-22 13:55:17 -05:00
..
2025-04-14 15:17:39 -05:00
2024-10-22 21:41:44 +03:00
2023-03-17 19:01:39 +01:00
2024-04-16 21:26:53 +02:00
2025-02-06 11:10:34 -06:00
2025-02-06 11:10:34 -06:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2025-01-28 10:00:04 -06:00
2025-02-19 10:41:42 -06:00
2024-10-01 12:26:46 +03:00
2025-02-26 02:07:09 +02:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2024-09-12 00:26:49 +02:00
2024-12-19 16:32:13 -06:00
2024-10-01 12:26:46 +03:00
2024-10-27 15:28:38 +02:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00