Experiment with new approaches

This commit is contained in:
jaby 2023-10-05 22:39:33 +02:00
parent c976141c51
commit c85d50a022
2 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,21 @@
"tasks": {
"version": "2.0.0",
"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",
"type": "shell",

View File

@ -10,7 +10,7 @@ set wsl=
IF %4 == linux (
set bin_ext=
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%