Skip to content

compiler_wrapper: cc.sh assumes that ifort -V will not compile source code #1831

@harshula

Description

@harshula

My colleague, @penguian , found that the Spack compiler wrapper assumes that -V will not appear as a compiler flag when compiling source:

# If any of the arguments below are present, then the mode is vcheck.
# In vcheck mode, nothing is added in terms of extra search paths or
# libraries.
if [ -z "$mode" ] || [ "$mode" = ld ]; then
for arg in "$@"; do
case $arg in
-v|-V|--version|-dumpversion)
mode=vcheck
break
;;
esac
done
fi

if [ "$mode" = vcheck ]; then
full_command_list="$command"
args="$@"
extend full_command_list vcheck_flags
extend full_command_list args
execute
fi

For more details, please refer to: ACCESS-NRI/spack-packages#315

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions