summaryrefslogtreecommitdiff
path: root/script/g++wrap
blob: f9903ed58cc84f682ed072b8d6c622bb840f72bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/zsh
#
# Copyright 2020 Daniel Friesel
#
# SPDX-License-Identifier: BSD-2-Clause


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++ "$@"