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@ -fno-release -funittest"
33 echo ${GDCFLAGS_default} ${GDCFLAGS_config}
36 GDCPATHS_default
="-nostdinc"
37 GDCPATHS_config
="-B${BUILD_DIR}/src
38 -I${BUILD_DIR}/libdruntime
39 -I${SRC_DIR}/libdruntime"
40 # Include phobos in search path if compiling in library.
41 if [ "x@ENABLE_LIBDRUNTIME_ONLY_FALSE@" = "x" ]; then
42 GDCPATHS_config
="${GDCPATHS_config} -I${SRC_DIR}/src"
44 echo ${GDCPATHS_default} ${GDCPATHS_config}
47 GDCLDFLAGS
="-B${BUILD_DIR}/src
48 -B${BUILD_DIR}/libdruntime/gcc
49 -L${BUILD_DIR}/src/.libs"