Skip to content

AVR (defined as __AVR__) should not be forced for all boards #202

Closed
@ianfixes

Description

@ianfixes

Issue Summary

via #144 (comment)

__AVR__ is normally defined by avr-gcc, so only for the AVR-based Arduino boards. To emulate other boards (e.g. SAMD / Arduino Zero), I think __AVR__ should not be defined, otherwise libraries etc. will not be genuinely emulated and if they test for __AVR__ they will erronously assume that all kind of AVR-specific stuff is available.

Solution: remove __AVR__ from the hard-coded argument list in cpp_library.rb and add it to the appropriate board definitions in the default.yml CI config

Metadata

Metadata

Assignees

No one assigned

    Labels

    arduino mocksCompilation mocks for the Arduino librarybugSomething isn't workingsome archsOnly affects some Arduino architectures

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions