mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
[CI] Try to stop Mac build from adding underscore to symbols
This commit is contained in:
parent
b74a1a5731
commit
a97ee24254
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/sh
|
#!/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}
|
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.'
|
printf '%s\n' 'Only symbols prefixed with "uvg_" should be exported from libuvg266.'
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue