Fix wasm-opt location when using local_web_sdk (#127355)
We were looking up the wrong path for `wasm-opt` previously when using the `local-web-sdk` flag.
This commit is contained in:
parent
7a12d825e2
commit
758ea6c096
@ -1108,7 +1108,7 @@ class CachedLocalWebSdkArtifacts implements Artifacts {
|
|||||||
);
|
);
|
||||||
case Artifact.wasmOptBinary:
|
case Artifact.wasmOptBinary:
|
||||||
return _fileSystem.path.join(
|
return _fileSystem.path.join(
|
||||||
_getDartSdkPath(), 'bin', 'snapshots',
|
_getDartSdkPath(), 'bin', 'utils',
|
||||||
_artifactToFileName(artifact, _platform, mode),
|
_artifactToFileName(artifact, _platform, mode),
|
||||||
);
|
);
|
||||||
case Artifact.genSnapshot:
|
case Artifact.genSnapshot:
|
||||||
|
@ -418,6 +418,13 @@ void main() {
|
|||||||
fileSystem.path.join('/flutter', 'prebuilts', 'linux-x64', 'dart-sdk',
|
fileSystem.path.join('/flutter', 'prebuilts', 'linux-x64', 'dart-sdk',
|
||||||
'bin', 'snapshots', 'dart2js.dart.snapshot'),
|
'bin', 'snapshots', 'dart2js.dart.snapshot'),
|
||||||
);
|
);
|
||||||
|
expect(
|
||||||
|
artifacts.getArtifactPath(
|
||||||
|
Artifact.wasmOptBinary,
|
||||||
|
platform: TargetPlatform.web_javascript),
|
||||||
|
fileSystem.path.join('/flutter', 'prebuilts', 'linux-x64', 'dart-sdk',
|
||||||
|
'bin', 'utils', 'wasm-opt'),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWithoutContext('getEngineType', () {
|
testWithoutContext('getEngineType', () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user