mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
tests/pedantic-header-test.sh.in : Fix out of tree builds.
This commit is contained in:
parent
fac9e4a9d7
commit
a5bec997a2
@ -36,8 +36,9 @@ echo -n " Pedantic header test : "
|
||||
# Only do this if the compiler is GCC.
|
||||
if test -n "@GCC_MAJOR_VERSION@" ; then
|
||||
|
||||
CC=`echo "@CC@" | sed "s/.* //"`
|
||||
# Compile with -Werror and -pedantic.
|
||||
@CC@ -std=c99 -Werror -pedantic -I@top_srcdir@/src -c @top_srcdir@/tests/sfversion.c -o /dev/null
|
||||
$CC -std=c99 -Werror -pedantic -I@top_builddir@/src -c @top_srcdir@/tests/sfversion.c -o /dev/null
|
||||
|
||||
# Check compiler return status.
|
||||
if test $? -ne 0 ; then
|
||||
|
Loading…
Reference in New Issue
Block a user