From 820780b67767bc86348aebf5603da4c7020de4a6 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 19 Mar 2015 23:53:15 -0700 Subject: [PATCH] Add missing c flag. Adding missing c99 flag to arduino scons files to match other builds. Change-Id: I118374979c448981ae2a7ca59648a1d30ca33f5b Signed-off-by: Jon A. Cruz Reviewed-on: https://gerrit.iotivity.org/gerrit/531 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- build_common/arduino/SConscript | 4 ++-- resource/csdk/connectivity/build/arduino/SConscript | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build_common/arduino/SConscript b/build_common/arduino/SConscript index 3455e26..1a34837 100644 --- a/build_common/arduino/SConscript +++ b/build_common/arduino/SConscript @@ -319,7 +319,7 @@ core_folder = core_base + 'cores/' + core + '/' env.AppendUnique(CPPPATH = [core_folder]) if is_1_0_x: - comm_flags = [] + comm_flags = ['-std=c99'] if mcu: comm_flags.extend(['-mmcu=' + mcu]) if f_cpu: @@ -351,7 +351,7 @@ else: else: cpu_flag = '-mcpu=' + mcu - comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board')] + comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=c99'] if target_arch == 'arm': comm_flag.extend(['-DARDUINO_ARCH_SAM']) else: diff --git a/resource/csdk/connectivity/build/arduino/SConscript b/resource/csdk/connectivity/build/arduino/SConscript index 227cb09..27a5921 100644 --- a/resource/csdk/connectivity/build/arduino/SConscript +++ b/resource/csdk/connectivity/build/arduino/SConscript @@ -324,7 +324,7 @@ core_folder = core_base + 'cores/' + core + '/' env.AppendUnique(CPPPATH = [core_folder]) if is_1_0_x: - comm_flags = [] + comm_flags = ['-std=c99'] if mcu: comm_flags.extend(['-mmcu=' + mcu]) if f_cpu: @@ -356,7 +356,7 @@ else: else: cpu_flag = '-mcpu=' + mcu - comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board')] + comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=c99'] if target_arch == 'arm': comm_flag.extend(['-DARDUINO_ARCH_SAM']) else: -- 2.7.4