From 3b34f8028dae6c3e17e37c517c0215f9d850711f Mon Sep 17 00:00:00 2001 From: joejoseph08 <43407514+joejoseph08@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:36:40 +0530 Subject: [PATCH] Add cygwin option for compilation (#1230) Add Cygwin option for compilation --- FreeRTOS/Demo/Posix_GCC/.vscode/launch.json | 13 +++++++++++++ FreeRTOS/Demo/Posix_GCC/.vscode/settings.json | 10 +++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/FreeRTOS/Demo/Posix_GCC/.vscode/launch.json b/FreeRTOS/Demo/Posix_GCC/.vscode/launch.json index 48a48d530a..3356e2cc93 100644 --- a/FreeRTOS/Demo/Posix_GCC/.vscode/launch.json +++ b/FreeRTOS/Demo/Posix_GCC/.vscode/launch.json @@ -30,6 +30,19 @@ "MIMode": "gdb", "preLaunchTask": "${defaultBuildTask}" }, + { + "name": "Launch GDB Cygwin", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/posix_demo", + "args": [], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "preLaunchTask": "${defaultBuildTask}" + }, { "name": "Launch GDB MSYS2", "type": "cppdbg", diff --git a/FreeRTOS/Demo/Posix_GCC/.vscode/settings.json b/FreeRTOS/Demo/Posix_GCC/.vscode/settings.json index d131d3d604..1ea090ed59 100644 --- a/FreeRTOS/Demo/Posix_GCC/.vscode/settings.json +++ b/FreeRTOS/Demo/Posix_GCC/.vscode/settings.json @@ -1,4 +1,4 @@ -{ +{ "terminal.integrated.profiles.windows": { "Ubuntu (WSL)": { "path": "C:\\Windows\\Sysnative\\bash.exe", @@ -10,6 +10,14 @@ "MSYSTEM": "MSYS", "CHERE_INVOKING": "1", } + }, + "Cygwin": { + "path": "C:\\cygwin64\\bin\\bash.exe", + "args": ["--login", "-i"], + "env": { + "MSYSTEM": "Cygwin", + "CHERE_INVOKING": "1", + } } }, "terminal.integrated.defaultProfile.windows": "MSYS2",