Skip to content

Commit ac10278

Browse files
committed
cmd/go: ignore unrecognized optimizations w/ clang
1 parent 4d8e1bf commit ac10278

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[openbsd] env CC='clang'
66
[!openbsd] env CC='gcc'
77

8-
env CGO_CFLAGS='-flto -ffat-lto-objects'
8+
env CGO_CFLAGS='-Wno-ignored-optimization-argument -flto -ffat-lto-objects'
99

1010
go build main.go add.go
1111

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[openbsd] env CC='clang'
66
[!openbsd] env CC='gcc'
77

8-
env CGO_CFLAGS='-flto -ffat-lto-objects'
8+
env CGO_CFLAGS='-Wno-ignored-optimization-argument -flto -ffat-lto-objects'
99

1010
go build main.go
1111

0 commit comments

Comments
 (0)