aboutsummaryrefslogtreecommitdiff
path: root/bin/build.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-09-10 00:35:44 -0600
committerSelene ToyKeeper2021-09-10 00:35:44 -0600
commitaebf13971bb2cd9b0e3976a8cab3bac23391dbb6 (patch)
tree15329c13efdc5c7d2a39d26a4cd5be375c7013e9 /bin/build.sh
parentchanged D4Sv2-tintramp from 255 to 511 for lowest PWM TOP value, (diff)
downloadanduril-aebf13971bb2cd9b0e3976a8cab3bac23391dbb6.tar.gz
anduril-aebf13971bb2cd9b0e3976a8cab3bac23391dbb6.tar.bz2
anduril-aebf13971bb2cd9b0e3976a8cab3bac23391dbb6.zip
added -mrelax to build.sh; saves ~330 bytes on t1634 builds
(suggested by solrize) (doesn't seem to reduce size of t85 builds though)
Diffstat (limited to 'bin/build.sh')
-rwxr-xr-xbin/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh
index aa983c8..58896a5 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -30,7 +30,7 @@ export CC=avr-gcc
export OBJCOPY=avr-objcopy
export DFPFLAGS="-B $ATTINY_DFP/gcc/dev/$MCU/ -I $ATTINY_DFP/include/"
export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums $DFPFLAGS"
-export OFLAGS="-Wall -g -Os -mmcu=$MCU $DFPFLAGS"
+export OFLAGS="-Wall -g -Os -mmcu=$MCU -mrelax $DFPFLAGS"
export LDFLAGS="-fgnu89-inline"
export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'
export OBJS=$PROGRAM.o