diff options
author | scheibelp <scheibel1@llnl.gov> | 2017-11-01 20:11:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 20:11:00 -0700 |
commit | 3eb59f6932e81ac1d20297adce1c55cac0f45b48 (patch) | |
tree | ee6d8351f2ad9b0c022502470f2b9fd073c5c1cc /lib/spack/env | |
parent | 60a485591c48e534f28ebe55c92f18834c4ca819 (diff) | |
download | spack-3eb59f6932e81ac1d20297adce1c55cac0f45b48.tar.gz spack-3eb59f6932e81ac1d20297adce1c55cac0f45b48.tar.bz2 spack-3eb59f6932e81ac1d20297adce1c55cac0f45b48.tar.xz spack-3eb59f6932e81ac1d20297adce1c55cac0f45b48.zip |
update filename used for cc wrapper invocation debug log (#5837)
The name of the debug log written by the cc compiler wrapper was given
by Spec.short_spec, which includes the architecture. Somewhere along
the line Spec.format started adding spaces around the architecture
property so the filename started including spaces; the cc wrapper
script appears to ignore this, so files like spack-cc-bzip2-....in.log
(which record the wrapped compiler invocations) were not being
generated. This uses a different format string from the spec to
generate the wrapper log file names (which does not include spaces).
Diffstat (limited to 'lib/spack/env')
-rwxr-xr-x | lib/spack/env/cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index d76a06760d..5ba0cbde05 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -45,6 +45,7 @@ parameters=( SPACK_PREFIX SPACK_ENV_PATH SPACK_DEBUG_LOG_DIR + SPACK_DEBUG_LOG_ID SPACK_COMPILER_SPEC SPACK_CC_RPATH_ARG SPACK_CXX_RPATH_ARG @@ -355,8 +356,8 @@ fi # Write the input and output commands to debug logs if it's asked for. # if [[ $SPACK_DEBUG == TRUE ]]; then - 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" + input_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_DEBUG_LOG_ID.in.log" + output_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_DEBUG_LOG_ID.out.log" echo "[$mode] $command $input_command" >> "$input_log" echo "[$mode] ${full_command[@]}" >> "$output_log" fi |