Skip to content

Commit 9f43656

Browse files
committed
Disable LTO optimization for the OpenBSD jobs
It's broken there
1 parent 74fc562 commit 9f43656

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,13 @@ if [[ "${build_type}" = 'arm'* ]]; then
190190
lto_partition='balanced'
191191
fi
192192

193-
declare -r ltoflags="-flto -fno-fat-lto-objects -flto-partition=${lto_partition} -flto-compression-level=0 -fdevirtualize-at-ltrans -fuse-linker-plugin"
194-
declare -r ltolinkflags='-flto'
193+
if [[ "${build_type}" = *'openbsd' ]]; then
194+
declare -r ltoflags=''
195+
declare -r ltolinkflags=''
196+
else
197+
declare -r ltoflags="-flto -fno-fat-lto-objects -flto-partition=${lto_partition} -flto-compression-level=0 -fdevirtualize-at-ltrans -fuse-linker-plugin"
198+
declare -r ltolinkflags='-flto'
199+
fi
195200

196201
if ! [ -f "${gmp_tarball}" ]; then
197202
curl \

0 commit comments

Comments
 (0)