Experiment with new approaches

This commit is contained in:
Jaby 2023-10-05 22:39:33 +02:00
parent db1bbec06e
commit 666baf9291
2 changed files with 16 additions and 1 deletions

View File

@ -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",

View File

@ -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%