benshi001 added a comment. In D118095#3282039 <https://reviews.llvm.org/D118095#3282039>, @MaskRay wrote:
> I do not know whether the complexity is justified. Rejecting some -mmcu= for > C source files looks quite dubious. Does it really help users? > > Bear in mind that all these complexity translates to clang executable size > increase for other users (most people don't use AVR). Actually I would like to make clang+llvm+lld fully compatible with gcc+binutils (functionality, ABI, quality, ...), and finally replace avr-gcc as Arduino's default toolchain. (https://www.arduino.cc/en/software, Arduino is a popular MCU platform for hardware prototype development & verification) Even many avr-libc (https://www.nongnu.org/avr-libc/) developers are trying build it with clang. If you think it is complex, we can remove the extreme check of `-x assembler-with-cpp`, which is rarely in a real world. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D118095/new/ https://reviews.llvm.org/D118095 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits