Logo
Explore Help
Sign In
TheArchive/tailscale
1
0
Fork 0
You've already forked tailscale
mirror of https://github.com/tailscale/tailscale.git synced 2025-05-08 16:47:11 +00:00
Code Issues Packages Projects Releases Wiki Activity
tailscale/version/cmdname_ios.go

20 lines
348 B
Go
Raw Normal View History

version: don't depend on goversion on ios
2020-04-07 09:28:09 -07:00
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
portlist, version: update build tags for Go 1.16, Apple M1 Build tags have been updated to build native Apple M1 binaries, existing build tags for ios have been changed from darwin,arm64 to ios,arm64. With this change, running go build cmd/tailscale{,d}/tailscale{,d}.go on an Apple machine with the new processor works and resulting binaries show the expected architecture, e.g. tailscale: Mach-O 64-bit executable arm64. Tested using go version go1.16beta1 darwin/arm64. Updates #943 Signed-off-by: moncho <50428+moncho@users.noreply.github.com>
2020-12-19 11:16:44 +01:00
// +build go1.16,ios !go1.16,darwin,arm64
version: don't depend on goversion on ios
2020-04-07 09:28:09 -07:00
package version
import (
"os"
)
func CmdName() string {
e, err := os.Executable()
if err != nil {
return "cmd"
}
return e
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 162ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API