Skip to content

Commit f6fb549

Browse files
committed
runtime/cgo: move TMPDIR magic out of os
It's not clear this really belongs anywhere at all, but this is a better place for it than package os. This way package os can avoid importing "C". Fixes #10455. Change-Id: Ibe321a93bf26f478951c3a067d75e22f3d967eb7 Reviewed-on: https://go-review.googlesource.com/12574 Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
1 parent eb2d946 commit f6fb549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/file_darwin.go renamed to src/runtime/cgo/tmpdir_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// +build arm arm64
66

7-
package os
7+
package cgo
88

99
/*
1010
#cgo CFLAGS: -x objective-c

0 commit comments

Comments
 (0)