Experiment with new approaches
This commit is contained in:
parent
db1bbec06e
commit
666baf9291
|
@ -8,6 +8,21 @@
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "cpp_out",
|
||||||
|
"type": "shell",
|
||||||
|
"windows": {
|
||||||
|
"command": "wsl --shell-type login cargo ${input:cargo cmd} --target=x86_64-unknown-linux-gnu --${input:build cfg}"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"command": "$HOME/.cargo/bin/cargo ${input:cargo cmd} --${input:build cfg}"
|
||||||
|
},
|
||||||
|
"group": "build",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/cpp_out"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//////////////////////////////////////////////////
|
||||||
{
|
{
|
||||||
"label": "all",
|
"label": "all",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
|
|
@ -10,7 +10,7 @@ set wsl=
|
||||||
IF %4 == linux (
|
IF %4 == linux (
|
||||||
set bin_ext=
|
set bin_ext=
|
||||||
set target=x86_64-unknown-linux-gnu
|
set target=x86_64-unknown-linux-gnu
|
||||||
set wsl=wsl $HOME/.cargo/bin/
|
set wsl=wsl --shell-type login
|
||||||
)
|
)
|
||||||
|
|
||||||
IF defined CARGO_RUN_ARGS set run_args=-- %CARGO_RUN_ARGS%
|
IF defined CARGO_RUN_ARGS set run_args=-- %CARGO_RUN_ARGS%
|
||||||
|
|
Loading…
Reference in New Issue