forked from firka/flutter
[flutter_tools] use absolute path for shader lib (#116123)
* [flutter_tools] use absolute path for shader lib * update tests
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user