[mac] fix dynamically linking UTIFramework during cgo build

This commit is contained in:
Lea\Anthony
2021-12-11 19:43:21 +11:00
parent 62adcab722
commit 24eaef1604

View File

@@ -326,7 +326,7 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
return err
}
versionSplit := strings.Split(info.OS.Version, ".")
addUTIFramework := versionSplit[0] == "10"
addUTIFramework := versionSplit[0] == "11"
// Set the minimum Mac SDK to 10.13
cmd.Env = upsertEnv(cmd.Env, "CGO_LDFLAGS", func(v string) string {
if v != "" {