|
7 | 7 | "args": [], |
8 | 8 | "type": "shell", |
9 | 9 | "osx": { |
10 | | - "environment": [ |
11 | | - { |
12 | | - "name": "CMAKE_CXX_COMPILER", |
13 | | - "value": "$(brew --prefix llvm)/bin/clang++" |
14 | | - }, |
15 | | - { |
16 | | - "name": "CMAKE_C_COMPILER", |
17 | | - "value": "$(brew --prefix llvm)/bin/clang" |
| 10 | + "options": { |
| 11 | + "env": { |
| 12 | + "CMAKE_CXX_COMPILER": "$(brew --prefix llvm)/bin/clang++", |
| 13 | + "CMAKE_C_COMPILER": "$(brew --prefix llvm)/bin/clang" |
18 | 14 | } |
19 | | - ] |
| 15 | + } |
20 | 16 | } |
21 | 17 | }, |
22 | 18 | { |
|
25 | 21 | "args": [], |
26 | 22 | "type": "shell", |
27 | 23 | "osx": { |
28 | | - "environment": [ |
29 | | - { |
30 | | - "name": "CMAKE_CXX_COMPILER", |
31 | | - "value": "$(brew --prefix llvm)/bin/clang++" |
32 | | - }, |
33 | | - { |
34 | | - "name": "CMAKE_C_COMPILER", |
35 | | - "value": "$(brew --prefix llvm)/bin/clang" |
| 24 | + "options": { |
| 25 | + "env": { |
| 26 | + "CMAKE_CXX_COMPILER": "$(brew --prefix llvm)/bin/clang++", |
| 27 | + "CMAKE_C_COMPILER": "$(brew --prefix llvm)/bin/clang" |
36 | 28 | } |
37 | | - ] |
| 29 | + } |
38 | 30 | } |
39 | 31 | }, |
40 | 32 | { |
|
49 | 41 | "args": [], |
50 | 42 | "type": "shell", |
51 | 43 | "osx": { |
52 | | - "environment": [ |
53 | | - { |
54 | | - "name": "CMAKE_CXX_COMPILER", |
55 | | - "value": "$(brew --prefix llvm)/bin/clang++" |
56 | | - }, |
57 | | - { |
58 | | - "name": "CMAKE_C_COMPILER", |
59 | | - "value": "$(brew --prefix llvm)/bin/clang" |
| 44 | + "options": { |
| 45 | + "env": { |
| 46 | + "CMAKE_CXX_COMPILER": "$(brew --prefix llvm)/bin/clang++", |
| 47 | + "CMAKE_C_COMPILER": "$(brew --prefix llvm)/bin/clang" |
60 | 48 | } |
61 | | - ] |
| 49 | + } |
62 | 50 | } |
63 | 51 | }, |
64 | 52 | { |
|
67 | 55 | "args": [], |
68 | 56 | "type": "shell", |
69 | 57 | "osx": { |
70 | | - "environment": [ |
71 | | - { |
72 | | - "name": "CMAKE_CXX_COMPILER", |
73 | | - "value": "$(brew --prefix llvm)/bin/clang++" |
74 | | - }, |
75 | | - { |
76 | | - "name": "CMAKE_C_COMPILER", |
77 | | - "value": "$(brew --prefix llvm)/bin/clang" |
| 58 | + "options": { |
| 59 | + "env": { |
| 60 | + "CMAKE_CXX_COMPILER": "$(brew --prefix llvm)/bin/clang++", |
| 61 | + "CMAKE_C_COMPILER": "$(brew --prefix llvm)/bin/clang" |
78 | 62 | } |
79 | | - ] |
| 63 | + } |
| 64 | + } |
| 65 | + }, |
| 66 | + { |
| 67 | + "label": "Build Current File: Debug", |
| 68 | + "command": "cmake", |
| 69 | + "args": [ |
| 70 | + "-DFILE=${file}", |
| 71 | + "-DBUILD_TYPE=Debug", |
| 72 | + "-P", |
| 73 | + "${workspaceFolder}/.vscode/build_current.cmake" |
| 74 | + ], |
| 75 | + "type": "shell", |
| 76 | + "group": { |
| 77 | + "kind": "build", |
| 78 | + "isDefault": true |
| 79 | + }, |
| 80 | + "presentation": { |
| 81 | + "reveal": "always", |
| 82 | + "panel": "shared" |
| 83 | + } |
| 84 | + }, |
| 85 | + { |
| 86 | + "label": "Build Current File: Release", |
| 87 | + "command": "cmake", |
| 88 | + "args": [ |
| 89 | + "-DFILE=${file}", |
| 90 | + "-DBUILD_TYPE=Release", |
| 91 | + "-P", |
| 92 | + "${workspaceFolder}/.vscode/build_current.cmake" |
| 93 | + ], |
| 94 | + "type": "shell", |
| 95 | + "group": "build", |
| 96 | + "presentation": { |
| 97 | + "reveal": "always", |
| 98 | + "panel": "shared" |
80 | 99 | } |
81 | 100 | } |
82 | 101 | ] |
|
0 commit comments