Changed flag from "-std=c99" to "-std=gnu99" to enable arduino due builds.
authorJoseph Morrow <joseph.l.morrow@intel.com>
Tue, 31 Mar 2015 17:48:35 +0000 (13:48 -0400)
committerErich Keane <erich.keane@intel.com>
Thu, 2 Apr 2015 20:04:10 +0000 (20:04 +0000)
This will allow the stack to use asm.

Change-Id: I7565381ea7cc7abf5b71539eb57c0570ae7fced7
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/616
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
build_common/arduino/SConscript

index 1a3483758a5e5c9cb4a0850e22e50b2f459363b7..756a9b4ae55a580a3e65ad5bd76946653fc29e81 100644 (file)
@@ -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'), '-std=c99']
+       comm_flag = [cpu_flag, '-DF_CPU=' + f_cpu, '-DARDUINO=' + version, '-DARDUINO_' + __get_board_info(board, '.build.board'), '-std=gnu99']
        if target_arch == 'arm':
                comm_flag.extend(['-DARDUINO_ARCH_SAM'])
        else: