https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123504

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Bruno Haible from comment #7)
> Then the compiler driver needs to look at the file format of the input file,
> in order to determine whether to invoke windres or not?

That is something the compiler driver doesn't do for anything else.
All the decisions are purely based on file extensions or explicit overrides.

So, either you pick a different extension, or perhaps there should be some
magic "language" which one can specify for -x option that would mean this is an
object file, just pass it to the linker, regardless of what exception it has.
Currently -x option only supports something that actually transforms/compiles
the input in some way, so -x assembler, -x assembler-with-cpp, -x c, -x
c-header, -x c++ or now newly for mingw -x windres-rc and -x windres-res.  Or
-x none, but that means autodetection.  But I don't see -x object-file or -x
binary (or whatever way to just pass it to the linker).

Reply via email to