Use __builtin_memmove for trivially copyable types
[official-gcc.git] / libgo / go / time / zoneinfo_ios.go
blob6d7f975a11443060b6f83ea99afce81fd76c6d29
1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin
6 // +build arm arm64
8 package time
10 import "syscall"
12 var zoneSources = []string{
13 getZipParent() + "/zoneinfo.zip",
16 func getZipParent() string {
17 wd, err := syscall.Getwd()
18 if err != nil {
19 return "/XXXNOEXIST"
22 // The working directory at initialization is the root of the
23 // app bundle: "/private/.../bundlename.app". That's where we
24 // keep zoneinfo.zip.
25 return wd
28 func initLocal() {
29 // TODO(crawshaw): [NSTimeZone localTimeZone]
30 localLoc = *UTC