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
19 # Establish configure-generated directory structure.
20 BUILD_DIR
=@libphobos_builddir@
21 SRC_DIR
=@libphobos_srcdir@
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}
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}
49 GDCLDFLAGS
="-B${BUILD_DIR}/src
50 -B${BUILD_DIR}/libdruntime/gcc
51 -B${BUILD_DIR}/src/.libs
52 -L${BUILD_DIR}/src/.libs"