Commit 8e4f1a71 authored by Elias Naur's avatar Elias Naur

time: look for zoneinfo.zip in GOROOT

The zoneinfo.zip file will be in the $GOROOT in self-hsoted builds
on iOS.

Updates #31722

Change-Id: I991fae92e3dc50581b099a2d8901aed36ecc7cef
Reviewed-on: https://go-review.googlesource.com/c/go/+/174310
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 62ddf7d0
......@@ -7,10 +7,14 @@
package time
import "syscall"
import (
"runtime"
"syscall"
)
var zoneSources = []string{
getZipParent() + "/zoneinfo.zip",
runtime.GOROOT() + "/lib/time/zoneinfo.zip",
}
func getZipParent() string {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment