Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang doesn't support -frecord-gcc-switches #16290

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR16291
Status NEW
Importance P normal
Reported by Rick Zero_Chaos Farina (zerochaos@gentoo.org)
Reported on 2013-06-10 11:51:03 -0700
Last modified on 2016-08-16 11:27:45 -0700
Version unspecified
Hardware PC Linux
CC donturner@google.com, llvm-bugs@lists.llvm.org, mgorny@gentoo.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
In gentoo we use -frecord-gcc-switches to enable a QA check to ensure CFLAGS et
al are being respected.  When I test with CC=clang CXX=clang++ it causes me to
get a warning that my CFLAGS are being ignored.

I get the following during compilation which seems to indicate it isn't
supported:

clang: clang: warning: warning: argument unused during compilation: '-frecord-
gcc-switches'
argument unused during compilation: '-frecord-gcc-switches'

I'm not sure how hard this is to implement, but is is a very useful feature.
Quuxplusone commented 11 years ago

Downstream bug https://bugs.gentoo.org/show_bug.cgi?id=472890

Quuxplusone commented 8 years ago

+1 to this feature. Very useful for debugging.