diff --git a/barretenberg/.vscode/settings.json b/barretenberg/.vscode/settings.json index cc597845c66..874d7193023 100644 --- a/barretenberg/.vscode/settings.json +++ b/barretenberg/.vscode/settings.json @@ -127,5 +127,6 @@ "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "cmake.sourceDirectory": "${workspaceFolder}/cpp" + "cmake.sourceDirectory": "${workspaceFolder}/cpp", + "clangd.path": "/Users/cody/Library/Application Support/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/bin/clangdrere" } diff --git a/barretenberg/barretenberg.code-workspace b/barretenberg/barretenberg.code-workspace index 24c8a186612..ca1363a4ccd 100644 --- a/barretenberg/barretenberg.code-workspace +++ b/barretenberg/barretenberg.code-workspace @@ -83,7 +83,7 @@ // Clangd. Note that this setting may be overridden by user settings // to the default value "clangd". // - "clangd.path": "clangd-16", + "clangd.path": "/Users/cody/Library/Application Support/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/bin/clangd", // We should disable automatic inclusion of headers unless we decide to follow "WhyIWYU". "clangd.arguments": [ "-header-insertion=never" diff --git a/barretenberg/cpp/CMakePresets.json b/barretenberg/cpp/CMakePresets.json index 0174d8b873b..b4c07f35914 100644 --- a/barretenberg/cpp/CMakePresets.json +++ b/barretenberg/cpp/CMakePresets.json @@ -21,6 +21,19 @@ "TARGET_ARCH": "skylake" } }, + { + "name": "default-dbg", + "displayName": "Debugging build with Clang", + "description": "Build with globally installed Clang in debug mode", + "inherits": "default", + "environment": { + "CMAKE_BUILD_TYPE": "Debug" + }, + "cacheVariables": { + "ENABLE_ASAN": "OFF", + "DISABLE_ASM": "ON" + } + }, { "name": "homebrew", "displayName": "Homebrew + Clang", @@ -250,6 +263,11 @@ "inheritConfigureEnvironment": true, "jobs": 0 }, + { + "name": "default-dbg", + "inherits": "default", + "configurePreset": "default-dbg" + }, { "name": "homebrew", "inherits": "default", @@ -360,6 +378,11 @@ "configurePreset": "default", "inheritConfigureEnvironment": true }, + { + "name": "default-dbg", + "inherits": "default", + "configurePreset": "default-dbg" + }, { "name": "homebrew", "inherits": "default",