]> Cypherpunks repositories - gostls13.git/commitdiff
race.bash: support freebsd
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 24 Jun 2014 22:47:22 +0000 (15:47 -0700)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 24 Jun 2014 22:47:22 +0000 (15:47 -0700)
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/110150044

src/race.bash

index 1680c09e490a194fd862ad3cdf0df2ea85ee2d2b..6225840168834d2fa16c56841f5c1c2d20e00f86 100755 (executable)
@@ -9,7 +9,7 @@
 set -e
 
 function usage {
-       echo 'race detector is only supported on linux/amd64 and darwin/amd64' 1>&2
+       echo 'race detector is only supported on linux/amd64, freebsd/amd64 and darwin/amd64' 1>&2
        exit 1
 }
 
@@ -25,6 +25,11 @@ case $(uname) in
                usage
        fi
        ;;
+"FreeBSD")
+       if [ $(uname -m) != "amd64" ]; then
+               usage
+       fi
+       ;;
 *)
        usage
        ;;