Skip to content

Commit 604e1ce

Browse files
committed
set compiler flags for cross-platorm harmony
1 parent e714f97 commit 604e1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arduino_ci/cpp_library.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def build_for_test_with_configuration(test_file, aux_libraries, ci_gcc_config)
189189
base = File.basename(test_file)
190190
executable = File.expand_path("unittest_#{base}.bin")
191191
File.delete(executable) if File.exist?(executable)
192-
args = ["-o", executable] + test_args(aux_libraries, ci_gcc_config) + [test_file]
192+
args = ["-std=c++11", "-o", executable] + test_args(aux_libraries, ci_gcc_config) + [test_file]
193193
return nil unless run_gcc(*args)
194194
artifacts << executable
195195
executable

0 commit comments

Comments
 (0)