Skip to content

Commit

Permalink
Update build tasks to run in wsl if project is open on windows host.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshbrntt committed Sep 6, 2024
1 parent 6c2d6cb commit ce20232
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
"type": "shell",
"label": "Build: Linux",
"command": "make",
"windows": {
"command": "wsl.exe",
"args": [
"--exec",
"make",
"build-linux",
"DEBUG=1"
],
},
"args": [
"build-linux",
"DEBUG=1"
Expand All @@ -17,6 +26,15 @@
{
"type": "shell",
"label": "Clean: Linux",
"windows": {
"command": "wsl.exe",
"args": [
"--exec",
"make",
"clean-linux",
"DEBUG=1"
],
},
"command": "make",
"args": [
"clean-linux",
Expand Down Expand Up @@ -49,6 +67,15 @@
{
"type": "shell",
"label": "Clean: Windows",
"windows": {
"command": "wsl.exe",
"args": [
"--exec",
"make",
"clean-windows",
"DEBUG=1"
],
},
"command": "make",
"args": [
"clean-windows",
Expand All @@ -59,6 +86,15 @@
{
"type": "shell",
"label": "Build: Mac OS X",
"windows": {
"command": "wsl.exe",
"args": [
"--exec",
"make",
"build-macosx",
"DEBUG=1"
],
},
"command": "make",
"args": [
"build-macosx",
Expand All @@ -72,6 +108,15 @@
{
"type": "shell",
"label": "Clean: Mac OS X",
"windows": {
"command": "wsl.exe",
"args": [
"--exec",
"make",
"clean-macosx",
"DEBUG=1"
],
},
"command": "make",
"args": [
"clean-macosx",
Expand Down

0 comments on commit ce20232

Please sign in to comment.