From 69f171ff7002d5a613e2949d95678ab81f928909 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Tue, 3 Apr 2012 12:09:42 -0400 Subject: [PATCH] Fix chipKIT compilation in OS X. --- arduino-mk/Arduino.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index f218b63..b611299 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -404,8 +404,8 @@ endif CPPFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \ -I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \ - $(SYS_INCLUDES) -g -Os -w -Wall \ - -ffunction-sections -fdata-sections $(EXTRA_CPPFLAGS) + $(SYS_INCLUDES) -w -Wall -O2 \ + -fno-exceptions -ffunction-sections -fdata-sections $(EXTRA_CPPFLAGS) ifndef USE_GNU99 CFLAGS = -std=gnu99