Skip to content

Commit 1198e49

Browse files
committed
Make: VS Code launchers for macOS
1 parent 71de4ea commit 1198e49

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.vscode/launch.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"name": "GDB C++: Launch",
66
"type": "cppdbg",
77
"request": "launch",
8-
"miDebuggerPath": "/usr/bin/gdb",
98
"cwd": "${workspaceFolder}",
109
"preLaunchTask": "Build Debug",
1110
"program": "${workspaceFolder}/build_debug/reduce_bench",
@@ -27,15 +26,17 @@
2726
],
2827
"stopAtEntry": false,
2928
"linux": {
29+
"miDebuggerPath": "/usr/bin/gdb",
3030
"MIMode": "gdb"
3131
},
3232
"osx": {
33+
"miDebuggerPath": "$(brew --prefix llvm)/bin/lldb-mi",
3334
"MIMode": "lldb"
3435
},
3536
"windows": {
37+
"miDebuggerPath": "C:\\MinGw\\bin\\gdb.exe",
3638
"program": "${workspaceFolder}\\build_debug\\reduce_bench.exe",
37-
"MIMode": "gdb",
38-
"miDebuggerPath": "C:\\MinGw\\bin\\gdb.exe"
39+
"MIMode": "gdb"
3940
}
4041
},
4142
{

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
"HUGEPAGE",
1414
"HUGETLB",
1515
"Kahan",
16+
"libnuma",
17+
"libomp",
1618
"Lookaside",
1719
"METALLIB",
1820
"NUMA",
1921
"NVCC",
2022
"opencl",
2123
"openmp",
24+
"RPATH",
2225
"shfl",
2326
"SPIR",
2427
"STREQUAL",

.vscode/tasks.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
{
77
"label": "Build Debug",
88
"type": "shell",
9-
"command": "cmake -B ./build_debug -DCMAKE_BUILD_TYPE=Debug && cmake --build ./build_debug --config Debug"
9+
"command": "cmake -B ./build_debug -DCMAKE_BUILD_TYPE=Debug && cmake --build ./build_debug --config Debug",
10+
"osx": {
11+
"command": "cmake -B ./build_debug -D CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++ -D OpenMP_ROOT=$(brew --prefix llvm) -D CMAKE_BUILD_RPATH=$(brew --prefix llvm)/lib -D CMAKE_INSTALL_RPATH=$(brew --prefix llvm)/lib && cmake --build ./build_debug --config Debug"
12+
},
1013
},
1114
{
1215
"label": "Build & Run Release",

0 commit comments

Comments
 (0)