================ @@ -204,6 +238,10 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { if (Clang->getFrontendOpts().PrintSupportedExtensions) return PrintSupportedExtensions(Clang->getTargetOpts().Triple); + // --print-enabled-extensions takes priority over the actual compilation. ---------------- pratlucas wrote:
Only one of them wins and is executed, depending on the order of their implementation in `cc1_main.cpp`. The same applies when using the two existing `--print-supported-extensions` and `--print-supported-cpus` together. Ideally, we should make these three options mutually exclusive in the future. https://github.com/llvm/llvm-project/pull/95805 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits