diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-28 15:28:51 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-28 15:28:51 +0200 |
commit | f20e55639c668a99ab61d9be107299f5506a3869 (patch) | |
tree | ccb525b994c04cc7bdd80f55673f8c5cf97ed5bf /scripts/compiledb-full-path-mingw.sh | |
parent | 265232d0ec91b457d882d0d0322e9d2f4b2cffac (diff) |
fix vscode configuration for windows
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" |