Skip to content

Commit 9192004

Browse files
committed
Remove hard-coded __AVR__ in favor of platform configuration
1 parent 0d887df commit 9192004

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99
### Added
10-
- Add `__AVR__` to defines when compiling
1110
- `arduino_ci_remote.rb` CLI switch `--skip-examples-compilation`
1211
- `CppLibrary.header_files` to find header files
1312
- `LibraryProperties` to read metadata from Arduino libraries

lib/arduino_ci/cpp_library.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_g
398398
executable = Pathname.new("unittest_#{base}.bin").expand_path
399399
File.delete(executable) if File.exist?(executable)
400400
arg_sets = []
401-
arg_sets << ["-std=c++0x", "-o", executable.to_s, "-DARDUINO=100", "-D__AVR__"]
401+
arg_sets << ["-std=c++0x", "-o", executable.to_s, "-DARDUINO=100"]
402402
if libasan?(gcc_binary)
403403
arg_sets << [ # Stuff to help with dynamic memory mishandling
404404
"-g", "-O1",

0 commit comments

Comments
 (0)