diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2024-02-01 05:04:43 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2024-02-14 21:37:25 (GMT) |
commit | 21a5449cfb355769b1178777ea0aca105673c8bd (patch) | |
tree | 8466ad19e2bc0ddfb0fb2de28bf2b71b08a36e42 | |
parent | 635df60d68c5425f82ecd2356d2a64f2ea1859e6 (diff) | |
download | hdf5-21a5449cfb355769b1178777ea0aca105673c8bd.zip hdf5-21a5449cfb355769b1178777ea0aca105673c8bd.tar.gz hdf5-21a5449cfb355769b1178777ea0aca105673c8bd.tar.bz2 |
append '-WF,' when passing C preprocessor directives to the xlf compiler (#3976)
* append '-WF,' when passing C preprocessor directives to the xlf compiler
* strip path from compiler name
-rw-r--r-- | fortran/examples/testh5fc.sh.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fortran/examples/testh5fc.sh.in b/fortran/examples/testh5fc.sh.in index 5b6a9de..f8f3706 100644 --- a/fortran/examples/testh5fc.sh.in +++ b/fortran/examples/testh5fc.sh.in @@ -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' } @@ -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. |