diff options
Diffstat (limited to 'net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch')
-rw-r--r-- | net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch b/net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch new file mode 100644 index 000000000000..1c83a03ec00f --- /dev/null +++ b/net-p2p/syncthing/files/syncthing-1.27.4-tests_race.patch @@ -0,0 +1,24 @@ +--- a/build.go ++++ b/build.go +@@ -34,7 +34,6 @@ + "time" + + _ "github.com/syncthing/syncthing/lib/automaxprocs" +- buildpkg "github.com/syncthing/syncthing/lib/build" + ) + + var ( +@@ -416,13 +415,6 @@ + } + args = append(args, "-timeout", timeout) + +- if runtime.GOARCH == "amd64" { +- switch runtime.GOOS { +- case buildpkg.Darwin, buildpkg.Linux, buildpkg.FreeBSD: // , "windows": # See https://github.com/golang/go/issues/27089 +- args = append(args, "-race") +- } +- } +- + if coverage { + args = append(args, "-covermode", "atomic", "-coverprofile", "coverage.txt", "-coverpkg", strings.Join(pkgs, ",")) + } |