summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5994lp-256k/g++wrap
blob: df8c7aba756baf72a2a6c2a2974276a54d0966cc (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/zsh

echo "> $@"

for i in {1..$#}; do
	if [[ $argv[$i] == *_agxx_* && -f $argv[$i] ]]; then
		sed -i 's/inline void \* operator new (unsigned int,/inline void * operator new(__int20 unsigned,/' $argv[$i]
	fi
done

exec /opt/msp430/ti/msp430-gcc-full-linux-5.1.2.0/bin/msp430-elf-g++ "$@"