Add command to compiler input log.

This commit is contained in:
Todd Gamblin 2016-03-28 15:34:25 -07:00
parent d8579a5b80
commit a14527ec06

2
lib/spack/env/cc vendored
View File

@ -241,7 +241,7 @@ fi
if [[ $SPACK_DEBUG = TRUE ]]; then if [[ $SPACK_DEBUG = TRUE ]]; then
input_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.in.log" input_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.in.log"
output_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.out.log" output_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.out.log"
echo "$input_command" >> $input_log echo "$command $input_command" >> $input_log
echo "$mode ${full_command[@]}" >> $output_log echo "$mode ${full_command[@]}" >> $output_log
fi fi