|
@@ -46,7 +46,7 @@ var (
|
|
sharedFlags []string
|
|
sharedFlags []string
|
|
debugFlags []string
|
|
debugFlags []string
|
|
sharedTags []string
|
|
sharedTags []string
|
|
- darwinTags []string
|
|
|
|
|
|
+ macOSTags []string
|
|
memcTags []string
|
|
memcTags []string
|
|
notMemcTags []string
|
|
notMemcTags []string
|
|
debugTags []string
|
|
debugTags []string
|
|
@@ -63,7 +63,7 @@ func init() {
|
|
debugFlags = append(debugFlags, "-ldflags", "-X github.com/sagernet/sing-box/constant.Version="+currentTag)
|
|
debugFlags = append(debugFlags, "-ldflags", "-X github.com/sagernet/sing-box/constant.Version="+currentTag)
|
|
|
|
|
|
sharedTags = append(sharedTags, "with_gvisor", "with_quic", "with_wireguard", "with_utls", "with_clash_api", "with_conntrack")
|
|
sharedTags = append(sharedTags, "with_gvisor", "with_quic", "with_wireguard", "with_utls", "with_clash_api", "with_conntrack")
|
|
- darwinTags = append(darwinTags, "with_dhcp")
|
|
|
|
|
|
+ macOSTags = append(macOSTags, "with_dhcp")
|
|
memcTags = append(memcTags, "with_tailscale")
|
|
memcTags = append(memcTags, "with_tailscale")
|
|
notMemcTags = append(notMemcTags, "with_low_memory")
|
|
notMemcTags = append(notMemcTags, "with_low_memory")
|
|
debugTags = append(debugTags, "debug")
|
|
debugTags = append(debugTags, "debug")
|
|
@@ -160,7 +160,9 @@ func buildApple() {
|
|
"-tags-not-macos=with_low_memory",
|
|
"-tags-not-macos=with_low_memory",
|
|
}
|
|
}
|
|
if !withTailscale {
|
|
if !withTailscale {
|
|
- args = append(args, "-tags-macos="+strings.Join(memcTags, ","))
|
|
|
|
|
|
+ args = append(args, "-tags-macos="+strings.Join(append(macOSTags, memcTags...), ","))
|
|
|
|
+ } else {
|
|
|
|
+ args = append(args, "-tags-macos="+strings.Join(macOSTags, ","))
|
|
}
|
|
}
|
|
|
|
|
|
if !debugEnabled {
|
|
if !debugEnabled {
|
|
@@ -169,7 +171,7 @@ func buildApple() {
|
|
args = append(args, debugFlags...)
|
|
args = append(args, debugFlags...)
|
|
}
|
|
}
|
|
|
|
|
|
- tags := append(sharedTags, darwinTags...)
|
|
|
|
|
|
+ tags := sharedTags
|
|
if withTailscale {
|
|
if withTailscale {
|
|
tags = append(tags, memcTags...)
|
|
tags = append(tags, memcTags...)
|
|
}
|
|
}
|