]>
git.saurik.com Git - apple/objc4.git/blob - test/headers.sh
3 # Compile every exported ObjC header as if it were a file in every language.
4 # This script is executed by test headers.c's TEST_BUILD command.
6 TESTINCLUDEDIR
=$1; shift
7 TESTLOCALINCLUDEDIR
=$1; shift
14 # stop after any command error
17 # echo commands when verbose
18 if [ "$VERBOSE" != "0" ]; then
22 FILES
="$TESTINCLUDEDIR/objc/*.h $TESTLOCALINCLUDEDIR/objc/*.h"
23 CFLAGS
='-fsyntax-only -Wno-unused-function -D_OBJC_PRIVATE_H_'
25 $COMPILE_C $CFLAGS $FILES
26 $COMPILE_CXX $CFLAGS $FILES
27 $COMPILE_M $CFLAGS $FILES
28 $COMPILE_MM $CFLAGS $FILES
29 for STDC
in '99' '11' ; do
30 $COMPILE_C $CFLAGS $FILES -std=c
$STDC
31 $COMPILE_M $CFLAGS $FILES -std=c
$STDC
33 for STDCXX
in '98' '03' '11' '14' '17' ; do
34 $COMPILE_CXX $CFLAGS $FILES -std=c
++$STDCXX
35 $COMPILE_MM $CFLAGS $FILES -std=c
++$STDCXX