summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-08-28 15:38:23 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-08-28 15:38:23 +0200
commit4d49d9c04c490a85962d4d530c59793609940a76 (patch)
tree4d99330111440776b9da0eae0337b75bbc2efa4b /script
parentf8bd40999cbfdda8b625e7720aa4a49d0e66c51a (diff)
Remove arch=msp430fr5994lp-256k, use arch=msp430fr5994lp large_mode=1 instead
Diffstat (limited to 'script')
-rwxr-xr-xscript/g++wrap9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/g++wrap b/script/g++wrap
new file mode 100755
index 0000000..fd0e5d9
--- /dev/null
+++ b/script/g++wrap
@@ -0,0 +1,9 @@
+#!/bin/zsh
+
+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++ "$@"