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-17 17:22:18 -05:00
2025-02-02 17:54:31 +00:00
2024-09-07 14:36:43 +03:00
2025-03-29 15:33:40 +01:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:26:31 -06:00
2025-04-22 13:55:17 -05:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:26:31 -06:00
2025-02-25 13:26:31 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2024-09-07 14:36:43 +03:00
2025-04-14 15:17:39 -05:00
2025-02-02 17:54:31 +00:00
2025-02-26 10:56:10 -06:00
2025-02-02 17:54:31 +00:00
2024-10-22 21:41:44 +03:00
2025-02-24 10:10:35 -06:00
2023-03-17 19:01:39 +01:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-03-15 00:31:18 +00:00
2025-02-02 17:54:31 +00:00
2023-02-27 18:06:38 -06:00
2025-02-26 14:09:24 -06:00
2025-02-02 17:54:31 +00:00
2025-02-26 10:56:10 -06:00
2025-03-27 13:52:41 -05:00
2024-04-16 21:26:53 +02:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2023-02-27 18:06:38 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2024-09-07 14:36:43 +03:00
2024-09-07 14:36:43 +03:00
2025-02-02 17:54:31 +00:00
2024-10-26 15:53:27 +03:00
2024-10-01 14:09:34 +02:00
2025-02-02 17:54:31 +00:00
2025-02-06 11:10:34 -06:00
2023-02-27 18:06:38 -06:00
2023-03-29 10:17:44 +02:00
2024-09-07 14:36:43 +03:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-06 11:10:34 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2024-10-26 15:53:27 +03:00
2023-02-27 18:06:38 -06:00
2025-02-25 13:26:31 -06:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:26:31 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:26:31 -06:00
2024-11-28 15:51:51 -06:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:26:31 -06:00
2025-02-02 17:54:31 +00:00
2024-05-12 02:16:51 +03:00
2025-02-02 17:54:31 +00:00
2025-01-28 10:00:04 -06:00
2024-10-26 15:53:27 +03:00
2025-02-26 10:56:10 -06:00
2025-02-19 10:41:42 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00: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
2025-02-18 17:23:17 -06:00
2024-10-01 12:26:46 +03:00
2024-09-12 00:26:49 +02:00
2025-02-25 13:26:31 -06:00
2025-02-25 13:26:31 -06:00
2025-02-02 17:54:31 +00:00
2023-02-27 18:06:38 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2024-12-19 16:32:13 -06:00
2025-02-26 10:56:10 -06:00
2025-02-25 13:26:31 -06:00
2025-02-25 13:26:31 -06:00
2025-02-02 17:54:31 +00:00
2025-04-12 11:29:38 +03:00
2025-02-02 17:54:31 +00:00
2025-04-19 13:56:20 -05:00
2024-10-01 12:26:46 +03:00
2023-02-27 18:06:38 -06:00
2025-02-02 17:54:31 +00:00
2024-10-27 15:28:38 +02:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:26:31 -06:00
2025-02-28 23:48:04 +01:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-03-10 12:58:07 -05: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
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2024-10-26 15:53:27 +03:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2024-10-01 12:26:46 +03:00
2024-10-01 12:26:46 +03:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-16 01:18:18 +01:00
2023-02-27 18:06:38 -06:00
2024-10-01 12:26:46 +03:00