c++: local class in generic lambda [PR113544]
[official-gcc.git] / libphobos / testsuite / testsuite_flags.in
blob528cff4bf13e6694dd5ecdb9f03f956745c6dded
1 #!/bin/sh
4 # This script computes the various flags needed to run D Phobos unittests.
7 # Print a message saying how this script is intended to be invoked
8 print_usage() {
9 cat <<EOF
10 Usage:
11 testsuite_flags --gdc
12 --gdcflags
13 --gdcpaths
14 --gdcldflags
16 EOF
19 # Establish configure-generated directory structure.
20 BUILD_DIR=@libphobos_builddir@
21 SRC_DIR=@libphobos_srcdir@
22 query=$1
24 case ${query} in
25 --gdc)
26 GDC="@GDC@"
27 echo ${GDC}
29 --gdcflags)
30 GDCFLAGS_default="-fmessage-length=0 -fno-show-column"
31 GDCFLAGS_config="@WARN_DFLAGS@ @GDCFLAGS@ @CET_DFLAGS@
32 @phobos_compiler_shared_flag@
33 -fall-instantiations -fpreview=dip1000
34 -fno-release -funittest"
35 echo ${GDCFLAGS_default} ${GDCFLAGS_config}
37 --gdcpaths)
38 GDCPATHS_default="-nostdinc"
39 GDCPATHS_config="-B${BUILD_DIR}/src
40 -I${BUILD_DIR}/libdruntime
41 -I${SRC_DIR}/libdruntime"
42 # Include phobos in search path if compiling in library.
43 if [ "x@ENABLE_LIBDRUNTIME_ONLY_FALSE@" = "x" ]; then
44 GDCPATHS_config="${GDCPATHS_config} -I${SRC_DIR}/src"
46 echo ${GDCPATHS_default} ${GDCPATHS_config}
48 --gdcldflags)
49 GDCLDFLAGS="-B${BUILD_DIR}/src
50 -B${BUILD_DIR}/libdruntime/gcc
51 -B${BUILD_DIR}/src/.libs
52 -L${BUILD_DIR}/src/.libs"
53 echo ${GDCLDFLAGS}
56 print_usage
58 esac
60 exit 0