Skip to content

Commit

Permalink
VS silly path hacks
Browse files Browse the repository at this point in the history
VS seems to run Arm GCC build with a PATH that doesn't contain System32,
which makes Ninja expolde when it tries to run cmd.exe. Somehow, setting
PATH to itself fixes this.
  • Loading branch information
Daft-Freak committed May 23, 2021
1 parent c8ce43f commit 3dddb5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ttblit/tool/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def visualstudio_config(project_path, sdk_path):
"inheritEnvironments": [ "gcc-arm" ],
"variables": [],
"cmakeToolchain": "{sdk_path}\\\\32blit.toolchain",
"intelliSenseMode": "linux-gcc-arm"
"intelliSenseMode": "linux-gcc-arm",
"environments": [ { "PATH": "${env.PATH}" } ]
},
{
"name": "32Blit-Release",
Expand All @@ -147,7 +148,8 @@ def visualstudio_config(project_path, sdk_path):
"cmakeToolchain": "{sdk_path}\\\\32blit.toolchain",
"inheritEnvironments": [ "gcc-arm" ],
"variables": [],
"intelliSenseMode": "linux-gcc-arm"
"intelliSenseMode": "linux-gcc-arm",
"environments": [ { "PATH": "${env.PATH}" } ]
}
]
}
Expand Down

0 comments on commit 3dddb5f

Please sign in to comment.