benshi001 accepted this revision. benshi001 added inline comments. This revision is now accepted and ready to land.
================ Comment at: clang/lib/Driver/ToolChains/AVR.cpp:451 + !Args.hasArg(options::OPT_nodefaultlibs)) { + if (CPU.empty()) { + // We cannot link any standard libraries without an MCU specified. ---------------- I think we should warn empty CPU name in the compile stage. For example, if user specified `-c` but not `-mmcu`, then we can not run to here to warn cpu is empty. So I will accept and rebase on your code. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D122553/new/ https://reviews.llvm.org/D122553 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits