From 89b761d603936c96218e03d8771e1b0043116fbf Mon Sep 17 00:00:00 2001 From: Mark Horvath Date: Fri, 31 May 2024 14:54:20 +0200 Subject: [PATCH] Add gcc build option as a vscode task Ccache clean task also updated to use ccache instead of an rm command. --- .vscode/tasks.json | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a519fc4a9..f28727db8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -42,6 +42,27 @@ "kind": "build" } }, + { + "label": "Build KleidiCV with GCC", + "type": "shell", + "command": "${workspaceFolder}/scripts/build.sh", + "problemMatcher": "$gcc", + "args": [ + "kleidicv-test" + ], + "options": { + "env": { + "BUILD_ID": "kleidicv-gcc", + "CMAKE_EXE_LINKER_FLAGS": "-static", + "EXTRA_CMAKE_ARGS": "-DKLEIDICV_LIMIT_SVE2_TO_SELECTED_ALGORITHMS=OFF", + "CC": "aarch64-linux-gnu-gcc", + "CXX": "aarch64-linux-gnu-g++" + } + }, + "group": { + "kind": "build" + } + }, { "label": "Clean build directory", "type": "shell", @@ -49,9 +70,9 @@ "problemMatcher": [] }, { - "label": "Clean ccache cache", + "label": "Clear ccache cache", "type": "shell", - "command": "rm -rf $CCACHE_DIR", + "command": "ccache --clear", "problemMatcher": [] }, { -- GitLab