Skip to content

Commit e185965

Browse files
committed
alter compiler flags
1 parent 3792c83 commit e185965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/arduino_ci/cpp_library.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ def build_for_test_with_configuration(test_file, aux_libraries, ci_gcc_config)
190190
base = File.basename(test_file)
191191
executable = File.expand_path("unittest_#{base}.bin")
192192
File.delete(executable) if File.exist?(executable)
193-
args = ["-std=c++11", "-o", executable] + test_args(aux_libraries, ci_gcc_config) + [test_file]
193+
args = [
194+
["-std=c++0x", "-o", executable, "-DARDUINO=100"],
195+
test_args(aux_libraries, ci_gcc_config),
196+
[test_file],
197+
].flatten(1)
194198
return nil unless run_gcc(*args)
195199
artifacts << executable
196200
executable

0 commit comments

Comments
 (0)