Skip to content

Commit

Permalink
add clang in visual studio path
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Jan 14, 2025
1 parent 0d59319 commit 9910489
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/native_toolchain_c/lib/src/native_toolchain/clang.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:native_assets_cli/code_assets.dart';

import '../tool/tool.dart';
import '../tool/tool_resolver.dart';
import 'msvc.dart';

/// The Clang compiler.
///
Expand All @@ -21,6 +22,11 @@ final Tool clang = Tool(
toolName: 'Clang',
executableName: OS.current.executableFileName('clang'),
),
RelativeToolResolver(
toolName: 'Clang',
wrappedResolver: visualStudio.defaultResolver!,
relativePath: Uri(path: './VC/Tools/Llvm/bin/clang.exe'),
),
InstallLocationResolver(
toolName: 'Clang',
paths: [
Expand Down

0 comments on commit 9910489

Please sign in to comment.