Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append '-WF,' when passing C preprocessor directives to the xlf compiler #3976

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions fortran/examples/testh5fc.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ EOF
# Parse option
# None

# Print a line-line message left justified in a field of 73 characters
# Print a line-line message left justified in a field of 83 characters
# beginning with the word "Testing".
#
TESTING() {
SPACES=" "
echo "Testing $* $SPACES" | cut -c1-73 | tr -d '\012'
echo "Testing $* $SPACES" | cut -c1-83 | tr -d '\012'
}


Expand Down Expand Up @@ -224,7 +224,12 @@ TOOLTEST $appmain_o $applib

# HDF5 program that depends on input args.
echo "***"Simple Compile and Link in one step with user-supplied arguments.
TOOLTEST -DSGL_QUOTE=\'H\' -DDBL_QUOTE=\"HDF\" -DMISC=42 $args
FCBASE=`grep "FCBASE=" $H5TOOL_BIN | xargs basename`
WF=""
if grep -qi "xlf" <<< "$FCBASE"; then
WF="-WF,"
fi
TOOLTEST $WF-DSGL_QUOTE=\'H\' $WF-DDBL_QUOTE=\"HDF\" $WF-DMISC=42 $args

# No preprocess test since -E is not a common option for Fortran compilers.

Expand Down
Loading