mirror of
https://github.com/golang/go
synced 2024-11-18 15:44:41 -07:00
[dev.link] cmd/link: mmap on more platforms
We didn't mmap on them because they don't support msync. Now we no longer use msync, we can mmap. Change-Id: I9988278566e0db10be90a994509fc6b733e784a3 Reviewed-on: https://go-review.googlesource.com/c/go/+/231920 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
0586fbb9d3
commit
781c94e4c6
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin dragonfly freebsd linux openbsd
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package ld
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !darwin,!dragonfly,!freebsd,!linux,!openbsd,!windows
|
||||
// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!windows
|
||||
|
||||
package ld
|
||||
|
||||
|
@ -17,7 +17,7 @@ func TestMMap(t *testing.T) {
|
||||
switch runtime.GOOS {
|
||||
default:
|
||||
t.Skip("unsupported OS")
|
||||
case "darwin", "dragonfly", "freebsd", "linux", "openbsd", "windows":
|
||||
case "aix", "darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "windows":
|
||||
}
|
||||
dir, err := ioutil.TempDir("", "TestMMap")
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user