mirror of
https://github.com/golang/go.git
synced 2025-05-17 05:14:40 +00:00
runtime/race: support freebsd
All tests pass except one test in regexp package. LGTM=iant R=golang-codereviews, iant, dave CC=golang-codereviews https://golang.org/cl/107270043
This commit is contained in:
parent
348300123f
commit
f1f37f93d0
@ -64,7 +64,7 @@ and test commands:
|
|||||||
The default is the number of CPUs available.
|
The default is the number of CPUs available.
|
||||||
-race
|
-race
|
||||||
enable data race detection.
|
enable data race detection.
|
||||||
Supported only on linux/amd64, darwin/amd64 and windows/amd64.
|
Supported only on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64.
|
||||||
-v
|
-v
|
||||||
print the names of packages as they are compiled.
|
print the names of packages as they are compiled.
|
||||||
-work
|
-work
|
||||||
@ -2556,8 +2556,8 @@ func raceInit() {
|
|||||||
if !buildRace {
|
if !buildRace {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if goarch != "amd64" || goos != "linux" && goos != "darwin" && goos != "windows" {
|
if goarch != "amd64" || goos != "linux" && goos != "freebsd" && goos != "darwin" && goos != "windows" {
|
||||||
fmt.Fprintf(os.Stderr, "go %s: -race is only supported on linux/amd64, darwin/amd64 and windows/amd64\n", flag.Args()[0])
|
fmt.Fprintf(os.Stderr, "go %s: -race is only supported on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64\n", flag.Args()[0])
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
buildGcflags = append(buildGcflags, "-race")
|
buildGcflags = append(buildGcflags, "-race")
|
||||||
|
@ -82,7 +82,7 @@ and test commands:
|
|||||||
The default is the number of CPUs available.
|
The default is the number of CPUs available.
|
||||||
-race
|
-race
|
||||||
enable data race detection.
|
enable data race detection.
|
||||||
Supported only on linux/amd64, darwin/amd64 and windows/amd64.
|
Supported only on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64.
|
||||||
-v
|
-v
|
||||||
print the names of packages as they are compiled.
|
print the names of packages as they are compiled.
|
||||||
-work
|
-work
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build race,linux,amd64 race,darwin,amd64 race,windows,amd64
|
// +build race,linux,amd64 race,freebsd,amd64 race,darwin,amd64 race,windows,amd64
|
||||||
|
|
||||||
package race
|
package race
|
||||||
|
|
||||||
|
BIN
src/pkg/runtime/race/race_freebsd_amd64.syso
Normal file
BIN
src/pkg/runtime/race/race_freebsd_amd64.syso
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user