Skip to content

Commit

Permalink
240220.233942.HKT minor revision
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Feb 20, 2024
1 parent 09f5e62 commit edf71dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
# As of 20240220, flang and aflang with -Mbounds would fail due to the bug at https://github.com/flang-compiler/flang/issues/1238
- {compiler: nvfortran, cflags: '-Wall', fflags: '-C -Wall -Wextra -Minform=warn -Mstandard -Mrecursive -Mbounds -Mchkstk'}
- {compiler: flang, cflags: '-Wall', fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'}
- {compiler: aflang, cflags: '-Wall', fflags: '-Wpedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'}
- {compiler: aflang, cflags: '-Wall', fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'}

steps:

Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/cmake_mac_nagfor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
fail-fast: false
matrix:
cc: [gcc, clang]
fc: [nagfor]


steps:
Expand Down Expand Up @@ -64,17 +63,13 @@ jobs:
export CC=${{ matrix.cc }}
export CFLAGS='-Wall -Wextra -Wpedantic -Werror'
export FC=${{ matrix.fc }}
if [[ "$FC" == "nagfor" ]] ; then
source ~/local/bin/nag_licensing || echo "\n\nNAG licensing failed.\n\n"
export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -kind=unique -Warn=constant_coindexing -Warn=subnormal'
# Zaikun 20240121: With gcc 13.2 or AppleClang 1.5.0 and nagfor 7.1.7143, if '-C=undefined'
# is included in FFLAGS, then the C tests will encounter a segmentation fault, although
# the Fortran tests work correctly.
#export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -C=undefined -kind=unique -Warn=constant_coindexing -Warn=subnormal'
else
export FFLAGS='-Wall -Wextra -Wpedantic -Werror -fimplicit-none -frecursive -fcheck=all -fstack-check -Wno-function-elimination'
fi
export FC="nagfor"
source ~/local/bin/nag_licensing || echo "\n\nNAG licensing failed.\n\n"
export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -kind=unique -Warn=constant_coindexing -Warn=subnormal'
# Zaikun 20240121: With gcc 13.2 or AppleClang 1.5.0 and nagfor 7.1.7143, if '-C=undefined'
# is included in FFLAGS, then the C tests will encounter a segmentation fault, although
# the Fortran tests work correctly.
#export FFLAGS='-fpp -nan -ieee=stop -recursive -gline -u -C -C=alias -C=dangling -C=intovf -C=undefined -kind=unique -Warn=constant_coindexing -Warn=subnormal'
cmake --version
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. -LAH -DCMAKE_C_FLAGS="${CFLAGS}" -DCMAKE_Fortran_FLAGS="${FFLAGS}" .
Expand Down

0 comments on commit edf71dd

Please sign in to comment.