Skip to content

Commit

Permalink
Merge branch 'cmd_line_defines' into client_server
Browse files Browse the repository at this point in the history
  • Loading branch information
James Foster committed Oct 12, 2020
2 parents 6ee766e + 89cff26 commit f8cb186
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/arduino_ci/cpp_library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,8 @@ def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_g
]
end
arg_sets << test_args(aux_libraries, ci_gcc_config)
if (arg_sets.flatten(1).index{|s| s.include?("-DARDUINO=")} == nil)
arg_sets << ["-DARDUINO=100"]
end
index = arg_sets.flatten(1).index { |s| s.include?("-DARDUINO=") }
arg_sets << ["-DARDUINO=100"] if index.nil?
arg_sets << cpp_files_libraries(aux_libraries).map(&:to_s)
arg_sets << [test_file.to_s]
args = arg_sets.flatten(1)
Expand Down

0 comments on commit f8cb186

Please sign in to comment.