Skip to content

Commit

Permalink
[AVR] Fix __AVR_xxx macro definitions; authored by Peter Wu
Browse files Browse the repository at this point in the history
Summary:
The -mmcu option for GCC sets macros like __AVR_ATmega328P__ (with the trailing
underscores), be sure to include these underscores for Clangs -mcpu option.

See "AVR Built-in Macros" in https://gcc.gnu.org/onlinedocs/gcc/AVR-Options.html

Reviewers: jroelofs, dylanmckay

Reviewed By: jroelofs, dylanmckay

Subscribers: efriedma, cfe-commits

Differential Revision: https://reviews.llvm.org/D29817

llvm-svn: 294869
  • Loading branch information
dylanmckay committed Feb 11, 2017
1 parent 579ca30 commit 315edb0
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 240 deletions.

0 comments on commit 315edb0

Please sign in to comment.