Skip to content

Commit

Permalink
MSVC: support finding build tools even when Visual Studio IDE is not …
Browse files Browse the repository at this point in the history
…installed

Fixes #1844
  • Loading branch information
Keithcat1 committed Dec 30, 2024
1 parent 23a42e0 commit 15854bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/native_toolchain_c/lib/src/native_toolchain/msvc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ class VisualStudioResolver implements ToolResolver {
for (final vswhereInstance in vswhereInstances.take(1)) {
final vswhereResult = await runProcess(
executable: vswhereInstance.uri,
arguments: ["-latest", "-products", "*"],
logger: logger,
);
final toolInfos = vswhereResult.stdout.split(_newLine * 2).skip(1);
Expand Down

0 comments on commit 15854bd

Please sign in to comment.