Skip to content

Commit b0bcf31

Browse files
committed
Fix #772 issue with predefined variables
See #772 or try to do ifort -cpp testit.f90 program testit integer :: unix=1 integer :: linux=1 end program testit
1 parent 58c4667 commit b0bcf31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
run: |
6969
echo "OUTPUT=${{ env.OUTPUT }}" >> $GITHUB_ENV
7070
echo "#define FPM_BOOTSTRAP" > fpm-${{ env.VERSION }}.F90
71+
# Intel compiler predefines "linux" and "unix" which causes inadvertent substitutions
72+
echo "#undef linux" >> fpm-${{ env.VERSION }}.F90
73+
echo "#undef unix" >> fpm-${{ env.VERSION }}.F90
7174
fpm build --compiler ./ci/single-file-gfortran.sh
7275
env:
7376
OUTPUT: fpm-${{ env.VERSION }}.F90

0 commit comments

Comments
 (0)