aboutsummaryrefslogtreecommitdiff
path: root/scripts/compiledb-full-path-mingw.sh
blob: 8f95756e71ccd571e85cc41e0f551d616cfbdbd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"