// tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "checkCrossCompile",
"command": "bash",
"args": ["-c", "if [ -n \"$CROSS_COMPILE\" ]; then echo 'true'; else echo 'false'; fi"],
"type": "shell",
"options": {
"env": {
"IS_CROSS_COMPILE": "${command:checkCrossCompile}"
}
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "checkCrossCompile",
"command": "bash",
"args": ["-c", "if [ -n \"$CROSS_COMPILE\" ]; then echo 'true'; else echo 'false'; fi"],
"type": "shell",
"options": {
"env": {
"IS_CROSS_COMPILE": "${command:checkCrossCompile}"
}
}
}
]
}
// launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (x64)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build_x64/executable",
"env": {
"IS_CROSS_COMPILE": "false"
}
},
{
"name": "C++ Launch (ARM)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build_arm/executable",
"env": {
"IS_CROSS_COMPILE": "true"
}
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (x64)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build_x64/executable",
"env": {
"IS_CROSS_COMPILE": "false"
}
},
{
"name": "C++ Launch (ARM)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build_arm/executable",
"env": {
"IS_CROSS_COMPILE": "true"
}
}
]
}
댓글 없음:
댓글 쓰기