Skip to content

Commit

Permalink
Skip windows
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins committed Jun 21, 2023
1 parent 305ff7b commit 01972cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 6 additions & 2 deletions tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,12 @@ String _getPackageVersion() {
@Task('Rebuild generated files')
@Depends(clean, buildWeb)
Future<void> build() async {
var launcher = SubprocessLauncher('build');
await launcher.runStreamed(Platform.resolvedExecutable,
if (Platform.isWindows) {
// Built files only need to be built on Linux and MacOS, as there are path
// issues with Windows.
return;
}
await SubprocessLauncher('build').runStreamed(Platform.resolvedExecutable,
[p.join('tool', 'mustachio', 'builder.dart')]);

var version = _getPackageVersion();
Expand Down
8 changes: 2 additions & 6 deletions tool/mustachio/codegen_aot_compiler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ Future<Map<_AotCompiler, Method>> _deduplicateRenderers(
// Each of the render functions generated by a compiler for this asset can
// be replaced by a more generic renderer which accepts the LUB types. The
// body of each replaced renderer can perform a simple redirect.
var rendererName =
path.replaceAll('.', '_').replaceAll('/', '_').replaceAll('\\', '_');
var rendererName = path.replaceAll('.', '_').replaceAll('/', '_');
var lubCompiler = _AotCompiler._(
contextStackTypes.first,
'_deduplicated_$rendererName',
Expand Down Expand Up @@ -460,10 +459,7 @@ class _BlockCompiler {
var partialCompiler = _templateCompiler._partialCompilers
.firstWhereOrNull((p) => p._templatePath == partialPath);
if (partialCompiler == null) {
var sanitizedKey = node.key
.replaceAll('.', '_')
.replaceAll('/', '_')
.replaceAll('\\', '_');
var sanitizedKey = node.key.replaceAll('.', '_').replaceAll('/', '_');
var name = '${partialBaseName}_'
'${sanitizedKey}_'
'${_templateCompiler._partialCounter}';
Expand Down

0 comments on commit 01972cd

Please sign in to comment.