Skip to content

Commit 7ce5095

Browse files
committed
cmd/cgo: only run CGO LTO tests if gcc present
1 parent f3b2c46 commit 7ce5095

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# tests golang.org/issue/43830
22

3-
[!cgo] skip
3+
[!cgo] skip "skipping test without cgo"
4+
[!exec:gcc] skip "skipping test without gcc present"
45

56
env CGO_CFLAGS='-flto -ffat-lto-objects'
67
go build main.go add.go

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# tests golang.org/issue/43830
22

3-
[!cgo] skip
3+
[!cgo] skip "skipping test without cgo"
4+
[!exec:gcc] skip "skipping test without gcc present"
45

56
env CGO_CFLAGS='-flto -ffat-lto-objects'
67
go build main.go

0 commit comments

Comments
 (0)