Skip to content

Commit

Permalink
[native_toolchain_c] MSVC: support finding build tools even when Visu…
Browse files Browse the repository at this point in the history
…al Studio IDE is not installed (#1845)
  • Loading branch information
Keithcat1 authored Dec 30, 2024
1 parent 23a42e0 commit f7af11e
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 f7af11e

Please sign in to comment.