File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -712,8 +712,14 @@ func buildEnv(targetOS string, engineCachePath string) []string {
712
712
cgoLdflags += fmt .Sprintf (" -L%s -L%s" , engineCachePath , outputDirPath )
713
713
cgoLdflags += " -lflutter_engine -Wl,-rpath,."
714
714
}
715
- cgoLdflags += " -mmacosx-version-min=10.10"
716
- cgoCflags += " -mmacosx-version-min=10.10"
715
+ if runtime .GOOS == targetOS {
716
+ cgoLdflags += " -mmacosx-version-min=10.11"
717
+ cgoCflags += " -mmacosx-version-min=10.11"
718
+ } else {
719
+ // OSX cross available in golang-cross (Docker) only supports up to 10.10
720
+ cgoLdflags += " -mmacosx-version-min=10.10"
721
+ cgoCflags += " -mmacosx-version-min=10.10"
722
+ }
717
723
case "linux" :
718
724
cgoLdflags += fmt .Sprintf (" -L%s -L%s" , engineCachePath , outputDirPath )
719
725
cgoLdflags += fmt .Sprintf (" -lflutter_engine -Wl,-rpath,$ORIGIN" )
You can’t perform that action at this time.
0 commit comments