Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable users to prepare the flutter engine within docker image without building first. #214

Merged
merged 13 commits into from
Jun 20, 2021
Merged
Prev Previous commit
Next Next commit
FIX: fail to prepare engine in release mode if on darwin
  • Loading branch information
cosban committed Jun 20, 2021
commit aa157fe9db6b1d7ede07d4f9e1128f6d6d60ee41
2 changes: 1 addition & 1 deletion cmd/prepare-engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func validatePrepareEngineParameters(targetOS string) {
log.Errorf("Multiple target modes set. Please select exactly one from: debug, profile, release.")
os.Exit(1)
}
if targetOS == "darwin" && runtime.GOOS != targetOS && prepareReleaseMode {
if targetOS == "darwin" && runtime.GOOS != targetOS && (prepareReleaseMode || prepareProfileMode) {
log.Errorf("It is not possible to prepare the flutter engine in release mode for darwin using docker")
os.Exit(1)
}
Expand Down