[clang] [Driver] -fno-plt: warn for non-ELF (PR #124081)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes -fno-plt is an ELF specific option that GCC doesn't bother to give a diagnostic on Windows. This option is somewhat popular and we've been ignoring it for unsupported targets

[clang] [Driver] -fno-plt: warn for non-ELF (PR #124081)

2025-01-22 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/124081 -fno-plt is an ELF specific option that GCC doesn't bother to give a diagnostic on Windows. This option is somewhat popular and we've been ignoring it for unsupported targets for a while (x86 support for a while,