[flutter_tools] use absolute path for shader lib (#116123)

* [flutter_tools] use absolute path for shader lib

* update tests
This commit is contained in:
Jonah Williams
2022-11-28 17:57:26 -08:00
committed by GitHub
parent 4c3b642f27
commit f777c9f651
4 changed files with 5 additions and 5 deletions

View File

@@ -175,8 +175,7 @@ class ShaderCompiler {
);
}
final String shaderLibPath = _fs.path.join(_fs.path.dirname(impellerc.path), 'shader_lib');
final String shaderLibPath = _fs.path.join(impellerc.parent.absolute.path, 'shader_lib');
final List<String> cmd = <String>[
impellerc.path,
target.target,
@@ -190,6 +189,7 @@ class ShaderCompiler {
'--include=${input.parent.path}',
'--include=$shaderLibPath',
];
_logger.printTrace('shaderc command: $cmd');
final Process impellercProcess = await _processManager.start(cmd);
final int code = await impellercProcess.exitCode;
if (code != 0) {