Skip to content

Commit 5f254e3

Browse files
committed
cmd/go/testdata: use clang on openbsd
1 parent 1203f5d commit 5f254e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cmd/go/testdata/script/issue_43830.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
[!cgo] skip 'skipping test without cgo'
44
[!exec:gcc] skip 'skipping test without gcc present'
5-
[openbsd] skip 'skipping test on openbsd due to older gcc'
5+
[openbsd] env CC='clang'
6+
[!openbsd] env CC=`gcc`
67

78
env CGO_CFLAGS='-flto -ffat-lto-objects'
8-
env CC='gcc'
99

1010
go build main.go add.go
1111

src/cmd/go/testdata/script/issue_43830_2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
[!cgo] skip 'skipping test without cgo'
44
[!exec:gcc] skip 'skipping test without gcc present'
5-
[openbsd] skip 'skipping test on openbsd due to older gcc'
5+
[openbsd] env CC='clang'
6+
[!openbsd] env CC=`gcc`
67

78
env CGO_CFLAGS='-flto -ffat-lto-objects'
8-
env CC='gcc'
99

1010
go build main.go
1111

0 commit comments

Comments
 (0)