From a97ee242549461e130cc2b0d912a69b1dbba4d93 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Wed, 31 Jul 2024 14:00:36 +0300 Subject: [PATCH] [CI] Try to stop Mac build from adding underscore to symbols --- tests/test_external_symbols.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_external_symbols.sh b/tests/test_external_symbols.sh index b9b1837f..efeedd93 100755 --- a/tests/test_external_symbols.sh +++ b/tests/test_external_symbols.sh @@ -1,10 +1,10 @@ #!/bin/sh -# Check for external symbols without uvg_ prefix. +# Check for external symbols without uvg_ prefix (or _uvg_ on macOS). set -eu${BASH+o pipefail} -if nm -go --defined-only ../lib/libuvg266.a | grep -v ' uvg_'; then +if nm -go --defined-only ../lib/libuvg266.a | grep -v ' uvg_' | grep -v ' _uvg_'; then printf '%s\n' 'Only symbols prefixed with "uvg_" should be exported from libuvg266.' false fi