I'm using -frecord-gcc-switches with gcc to detect when CFLAGS are not being respected (as everyone should be). Recently I started testing with clang and it seems this feature is not implemented and causes errors with our QA check clang: clang: warning: warning: argument unused during compilation: '-frecord-gcc-switches' argument unused during compilation: '-frecord-gcc-switches'
Documentation on this feature is available on the GCC wiki: http://gcc.gnu.org/wiki/Record_GCC_command_line_switches_in_object_files It should not be hard to implement. Someone just needs to sit down for a few days to do it.
Did anyone actually attempt to implement this?!
@zzlei, feel like attempting to do this? ;-)
(In reply to Michał Górny from comment #3) > @zzlei, feel like attempting to do this? ;-) This seems not as trivial as my previous patches to clang. I'll take a serious look when I've got time.
This is fully relying on someone implementing it upstream. No point in tracking it downstream.