diff options
| author | kyab <[email protected]> | 2014-03-26 18:21:25 +0900 |
|---|---|---|
| committer | kyab <[email protected]> | 2014-03-26 18:21:25 +0900 |
| commit | e87b2d36264d5b717303c0305451a1a328d416e9 (patch) | |
| tree | 3cb2a07a028cc2e80d59fcec07eb9ce51828e99d /examples | |
| parent | 1b422befb170ee47e8d5a13464c083dc88143467 (diff) | |
| download | mruby-e87b2d36264d5b717303c0305451a1a328d416e9.tar.gz mruby-e87b2d36264d5b717303c0305451a1a328d416e9.zip | |
Catch up to latest Arduino IDE
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/targets/ArduinoDue.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/targets/ArduinoDue.rb b/examples/targets/ArduinoDue.rb index a4af4a926..6dae85ca1 100644 --- a/examples/targets/ArduinoDue.rb +++ b/examples/targets/ArduinoDue.rb @@ -19,7 +19,8 @@ MRuby::CrossBuild.new("Arduino Due") do |conf| "#{SAM_PATH}/system/CMSIS/Device/ATMEL/", "#{SAM_PATH}/cores/arduino", "#{SAM_PATH}/libraries","#{TARGET_PATH}"] cc.flags = %w(-g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 - -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=152 -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON) + -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=156 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM + -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Due") cc.compile_options = "%{flags} -o %{outfile} -c %{infile}" #configuration for low memory environment @@ -36,6 +37,7 @@ MRuby::CrossBuild.new("Arduino Due") do |conf| cxx.command = conf.cc.command.dup cxx.include_paths = conf.cc.include_paths.dup cxx.flags = conf.cc.flags.dup + cxx.flags << %w(-fno-rtti -fno-exceptions) cxx.defines = conf.cc.defines.dup cxx.compile_options = conf.cc.compile_options.dup end |
