[config.toml] should allow specifying arbitrary flags to the cc command for a target
Currently you can specify
[target.somethingweord]
cc = "somethingelse"
but cannot make somethingelse to also receive flags for the target.
Triage: Could you explain a bit more what the use case is please? When would this be useful to have?
Martin Nordholts at 2023-09-28 04:45:46
Triage: Could you explain a bit more what the use case is please? When would this be useful to have?
Not the author but it would make it very convenient to use "zig cc" directly. Instead of having to make a script that does that. In addition you can pass extra parameters that specify the target etc which are also useful with zig cc and perhaps other usage.
Alvenix at 2023-09-28 13:15:10
Exactly what Alvenix said.
gcchas a binary per target, so it works alright if that's the linker or compiler you want to specify. Howeverclanguses the--target=*argument rather than providing multiple binaries, so specifying it without the ability to provide arguments becomes quite a complicated affair.(Also, sorry you had to ask for the details here – I should've provided them in the first place back when I filled the issue.)
Simonas Kazlauskas at 2023-09-28 21:03:37