From 67747c77224b92abde424077e994e3dcaf119c14 Mon Sep 17 00:00:00 2001 From: Jocelyn Falempe Date: Thu, 2 Oct 2025 19:40:47 +0200 Subject: [PATCH] Fix CI on MacOS newer Macos runner have dropped the linker option --export-symbol-regex, so check if the fallback works, otherwise just don't export symbols Signed-off-by: Jocelyn Falempe --- src/tsm/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tsm/meson.build b/src/tsm/meson.build index af0e5e1..938b93a 100644 --- a/src/tsm/meson.build +++ b/src/tsm/meson.build @@ -19,6 +19,9 @@ cc = meson.get_compiler('c') if not cc.links(code, args: link_flags, name: '-Wl,--version-script=...') link_flags = [ '-export-symbols-regex=^tsm_' ] + if not cc.links(code, args: link_flags, name: '-Wl,--export-symbol-regex') + link_flags = [] + endif endif libtsm = shared_library(