summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-26 22:02:22 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-26 22:02:22 +0900
commit6e1e728c51c9178a239fd9c44f0df5e612135e70 (patch)
tree3cb2a07a028cc2e80d59fcec07eb9ce51828e99d
parent1b422befb170ee47e8d5a13464c083dc88143467 (diff)
parente87b2d36264d5b717303c0305451a1a328d416e9 (diff)
downloadmruby-6e1e728c51c9178a239fd9c44f0df5e612135e70.tar.gz
mruby-6e1e728c51c9178a239fd9c44f0df5e612135e70.zip
Merge pull request #1952 from kyab/catchup_arduinodue
Catch up to latest Arduino IDE
-rw-r--r--examples/targets/ArduinoDue.rb4
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