# -------------------------------------------------------------------------
if $COMPILER_TYPE_CLANG; then
TEST "-fbuild-session-file/absolute/path"
-
+
build_session_file_path="$(pwd)/dir3/build-session-file.bin"
cd dir1
CCACHE_BASEDIR="$(pwd)" $CCACHE_COMPILE -I"$(pwd)/include" -fbuild-session-file="$build_session_file_path" -c src/test.c
expect_content_pattern test.d "$(pwd)/foo.o:*"
cd ..
done
+
# -------------------------------------------------------------------------
# When BASEDIR is set to /, check that -MF, -MQ and -MT arguments with
# absolute paths are rewritten to relative and that the dependency file
expect_stat cache_miss 1
cd ..
done
+
# -------------------------------------------------------------------------
if $RUN_WIN_XFAIL; then
TEST "Absolute paths in stderr"
expect_equal_content reference.stderr ccache.stderr
fi
fi
+
# -------------------------------------------------------------------------
TEST "Relative PWD"