4 ms·
I think this comment puts it nicely: https://github.com/SRI-CSL/gllvm/issues/48#issuecomment-844457585 https://github.com/SRI-CSL/gllvm/issues/48#issuecomment-8
by xg15 4y ago
I think this comment puts it nicely: https://github.com/SRI-CSL/gllvm/issues/48#issuecomment-844457585 https://github.com/SRI-CSL/gllvm/issues/48#issuecomment-8444...
But hang on, this is Linux where file extensions are basically just decoration. So if GCC now has special behaviour (and a different linker invocation) depending if the file is a source or an object file, does that mean GCC has to do content sniffing to figure out what the command is supposed to do?
- woodruffw 4y agoI don't think it's content sniffing per se -- GCC is aware of the "standard" extensions for C and C++ sources, and will complain if an input doesn't match one of them (absent other flags to override the behavior, like `-x c++`.