diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 950d9e3..650be58 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,20 +3,12 @@ { "type": "cppbuild", "label": "C/C++: clang сборка активного файла", - "command": "/usr/bin/clang", + "command": "sh", "args": [ - "-fcolor-diagnostics", - "-fansi-escape-codes", - "-g", - "${file}", - "$(find ${fileDirname}/src -type f -iregex '.*\\.cpp')", - "-lm", - "-lraylib", - "-o", - "${fileDirname}/bin/${fileBasenameNoExtension}" + "${workspaceFolder}/build.sh" ], "options": { - "cwd": "${fileDirname}" + "cwd": "${workspaceFolder}" }, "problemMatcher": [ "$gcc" diff --git a/build.sh b/build.sh index caa2865..f9cbdfc 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash CC="${CXX:-c++}" LL="-lm -lraylib" -FLAGS="-Wall -std=c++17 -I./inc/" +FLAGS="-Wall -std=c++17 -I./inc/ -g" $CC $FLAGS $(find ./src -type f -iregex ".*\.cpp") $LL -o ./bin/main