I have been experimenting with the FMZM library by David Smith for multiple-precision calculations with the intent to make it accessible via fpm. But for the Intel ifx compiler I need a specific compile option. Is it possible to do so? That is: can you specify in the toml file that option A is to be added if you use compiler B?
Unless that changed, I think you cannot. However, you can use response file. I usually have a fpm.rsp
sitting next to the fpm.toml
which looks like this
@clean
option clean --all
@rebuild
system rmdir /s /q build
option build --flag '-ffree-line-length-none'
@build
option build --flag '-ffree-line-length-none'
so you could define:
@build-intel
option --flag ' '
@build-gfortran
option --flag ' '
PS: if you do this in Powershell, the @ symbol is reserved so you have to do fpm --% @build-intel
. The --%
deactivates ‘smart’ parsing.
2 Likes
Not yet, but likely in the next release, as it is being discussed
2 Likes
Okay, thanks for this! I guess a response file is the way to go then for the moment.