[clang] clang -mpopcnt hello.c <link flag>
fails to generate warning when file precedes link flag
#116278
Labels
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
on aarch64 darwin using the
-mpopcnt
flag will result in a warning on clang 16 and error on clang 19.1.3. however, if a linker flag trails the file name no warning / error is generated. eg:however, re-ordering the command line so the file name comes after
-lc
will generate the expected errorthis behavior is not seen with all link flags, eg
-flat_namespace
always will generate an error, but when used in conjunction with-Wl
will generate an error (as do other flags, like-v
)The text was updated successfully, but these errors were encountered: