mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 07:19:03 -04:00

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
8 lines
271 B
C
8 lines
271 B
C
// REQUIRES: avr-registered-target
|
|
// RUN: %clang_cc1 -E -dM -triple avr-unknown-unknown -target-cpu attiny104 /dev/null | FileCheck -match-full-lines %s
|
|
|
|
// CHECK: #define AVR 1
|
|
// CHECK: #define __AVR 1
|
|
// CHECK: #define __AVR_ATtiny104__ 1
|
|
// CHECK: #define __AVR__ 1
|