diff options
| author | Selene ToyKeeper | 2019-09-18 16:17:27 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-09-18 16:17:27 -0600 |
| commit | 87f5095f52e8e9ccb30ee4ff4beda75ef5b11baa (patch) | |
| tree | 07c73d4d2562b0b2058500017da115a32fa035ac | |
| parent | added arbitrary ramp shape powers to level_calc.py, to more easily hit specif... (diff) | |
| download | anduril-87f5095f52e8e9ccb30ee4ff4beda75ef5b11baa.tar.gz anduril-87f5095f52e8e9ccb30ee4ff4beda75ef5b11baa.tar.bz2 anduril-87f5095f52e8e9ccb30ee4ff4beda75ef5b11baa.zip | |
added a compile flag to fix compatibility with GCC 7/8/9's new semantics for "inline"
(should fix builds on newer compilers, I think)
Diffstat (limited to '')
| -rwxr-xr-x | bin/build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build.sh b/bin/build.sh index 192fa30..fbb24ea 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -14,9 +14,9 @@ export PROGRAM=$1 ; shift export MCU=attiny$ATTINY export CC=avr-gcc export OBJCOPY=avr-objcopy -export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums" +export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums" export OFLAGS="-Wall -g -Os -mmcu=$MCU" -export LDFLAGS= +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 |
