diff options
Diffstat (limited to 'scripts/compiledb-full-path-mingw.sh')
-rw-r--r-- | scripts/compiledb-full-path-mingw.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/compiledb-full-path-mingw.sh b/scripts/compiledb-full-path-mingw.sh new file mode 100644 index 0000000..8f95756 --- /dev/null +++ b/scripts/compiledb-full-path-mingw.sh @@ -0,0 +1,13 @@ +#!/bin/sh +[ `uname -o` != "Msys" ] && exit + +COMPILEDB_FILE="$1" + +fixpath () { + NEW="C:/msys64`which $1`.exe" + sed "s#\"$1\",#\"$NEW\",#g" -i "$COMPILEDB_FILE" +} + +fixpath arm-none-eabi-gcc +fixpath arm-none-eabi-objcopy +sed "s#\"/c/#\"C:/#g" -i "$COMPILEDB_FILE" |