Skip to content

Commit a4def72

Browse files
committed
preprocessor flag by compilers
1 parent 5f5a058 commit a4def72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/fypp_deployment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def fpm_build(args,unknown):
8080
# Filter out the include paths with -I prefix.
8181
include_paths = [arg for arg in unknown if arg.startswith("-I")]
8282
# Filter out flags
83-
flags = "-cpp "
83+
preprocessor = { 'gfortran':'-cpp ' , 'ifort':'-fpp ' , 'ifx':'-fpp ' }
84+
flags = preprocessor[FPM_FC]
8485
for idx, arg in enumerate(unknown):
8586
if arg.startswith("--flag"):
8687
flags= flags + unknown[idx+1]

0 commit comments

Comments
 (0)