Add missing c flag.
authorJon A. Cruz <jonc@osg.samsung.com>
Fri, 20 Mar 2015 06:53:15 +0000 (23:53 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 20 Mar 2015 23:32:11 +0000 (23:32 +0000)
Adding missing c99 flag to arduino scons files to match other builds.

Change-Id: I118374979c448981ae2a7ca59648a1d30ca33f5b
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/531
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
build_common/arduino/SConscript
resource/csdk/connectivity/build/arduino/SConscript

index 3455e26..1a34837 100644 (file)
@@ -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:
index 227cb09..27a5921 100644 (file)
@@ -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: