diff --git a/.vscode/launch.json b/.vscode/launch.json index 45983d374bb..c6b336a24a7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -22,6 +22,11 @@ "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true + }, + { + "description": "Do not stop on SIGPIPE", + "text": "handle SIGPIPE nostop noprint pass", + "ignoreFailures": true } ], "preLaunchTask": "build", @@ -50,6 +55,11 @@ "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true + }, + { + "description": "Do not stop on SIGPIPE", + "text": "handle SIGPIPE nostop noprint pass", + "ignoreFailures": true } ], "preLaunchTask": "build", @@ -112,4 +122,4 @@ "sourceLanguages": ["cpp"] } ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ca55beabf4a..0d42e0a209d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,7 +4,7 @@ { "label": "build", "type": "shell", - "command": "cd ${workspaceFolder}/cmake/build && cmake --build . --target srs utest", + "command": "if [ ! -f \"${workspaceFolder}/cmake/build/CMakeCache.txt\" ]; then cmake -S \"${workspaceFolder}/cmake\" -B \"${workspaceFolder}/cmake/build\"; fi && cmake --build \"${workspaceFolder}/cmake/build\" --target srs utest", "group": { "kind": "build", "isDefault": true @@ -15,7 +15,7 @@ { "label": "st-build", "type": "shell", - "command": "cd ${workspaceFolder}/cmake/build && cmake --build . --target st_utest", + "command": "if [ ! -f \"${workspaceFolder}/cmake/build/CMakeCache.txt\" ]; then cmake -S \"${workspaceFolder}/cmake\" -B \"${workspaceFolder}/cmake/build\"; fi && cmake --build \"${workspaceFolder}/cmake/build\" --target st_utest", "group": { "kind": "build", "isDefault": true @@ -24,5 +24,6 @@ "detail": "Build ST by cmake." } ] - } - \ No newline at end of file +} + +