fix windows vs unix path insanity
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
srcs=src/*
|
||||
working_dir=$pwd
|
||||
|
||||
echo [ > compile_commands.json
|
||||
|
||||
find src -iname "*.cpp" -exec sh -c 'echo { \"directory\": \"$(pwd)\", \"command\": \"cl {} -I inc -Od -std:c++20 -Fo\", \"file\": \"{}\" }, >> compile_commands.json' \;
|
||||
|
||||
find src -iname "*.cpp" -exec sh -c 'echo { \"directory\": \"$(cygpath -m $(pwd))\", \"command\": \"cl "$(cygpath -m {})" -I inc -Od -std:c++20 -Fo\", \"file\": \"$(cygpath -m {})\" }, >> compile_commands.json' \;
|
||||
echo ] >> compile_commands.json
|
||||
|
||||
Reference in New Issue
Block a user