Skip to content

Commit 411ac24

Browse files
committed
This is a huge hack
1 parent 4ae58ff commit 411ac24

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ zlib = dependency('zlib', static: true)
1818

1919
add_project_arguments('-w', language: 'c')
2020

21+
# MSYS2 CLANGARM64 has intermittent false-positive stack-protector failures,
22+
# likely due to __stack_chk_guard TLS initialization ordering in the toolchain.
23+
if meson.get_compiler('c').get_id() == 'clang' and host_machine.cpu_family() == 'aarch64'
24+
add_project_arguments('-fno-stack-protector', language: 'c')
25+
endif
26+
2127
if host_machine.system() == 'windows'
2228
add_project_arguments(
2329
'-DGLIB_STATIC_COMPILATION',

0 commit comments

Comments
 (0)