Explorar o código

Merge pull request #17786 from Microsoft/10662-nativetestunit

Windows: Native make test-unit
Vincent Demeester %!s(int64=9) %!d(string=hai) anos
pai
achega
e2a9eede28
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      hack/make/test-unit

+ 2 - 1
hack/make/test-unit

@@ -25,7 +25,8 @@ bundle_test_unit() {
 	go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
 }
 
-if [[ "$(go version)" =~ "gccgo" ]]; then
+
+if [[ "$(go version)" == *"gccgo"* ]]; then
 	GCCGOFLAGS=-gccgoflags="-lpthread"
 else
 	COVER=-cover