From 01972cdd8675f7249af5d1d04ed933365f744d83 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Wed, 21 Jun 2023 10:52:32 -0700 Subject: [PATCH] Skip windows --- tool/grind.dart | 8 ++++++-- tool/mustachio/codegen_aot_compiler.dart | 8 ++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tool/grind.dart b/tool/grind.dart index 7d6a34a709..7fcab6a0f7 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -1013,8 +1013,12 @@ String _getPackageVersion() { @Task('Rebuild generated files') @Depends(clean, buildWeb) Future 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(); diff --git a/tool/mustachio/codegen_aot_compiler.dart b/tool/mustachio/codegen_aot_compiler.dart index 5fed337326..48c291f522 100644 --- a/tool/mustachio/codegen_aot_compiler.dart +++ b/tool/mustachio/codegen_aot_compiler.dart @@ -135,8 +135,7 @@ Future> _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', @@ -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}';