If -g is used, the executable _always_ has version and option info (no extra code invoking compiler_version() and compiler_options() is needed). Just use strings <binary> | grep GNU .
If -g is not used, no option info is in the executable.
Best wishes, Kay On 01.06.22 12:00, Arjen Markus wrote:
staticv.f90 -- ! Static information about the compiler? Not via parameters ! program staticv use iso_fortran_env implicit none character(len=200) :: c, d c = compiler_version() d = compiler_options() write(*,*) c(1:1), d(1:)1 end program staticv
-- Kay Diederichs http://strucbio.biologie.uni-konstanz.de email: kay.diederi...@uni-konstanz.de Tel +49 7531 88 4049 Fachbereich Biologie, Universität Konstanz, Box M647, D-78457 Konstanz This e-mail is digitally signed. If your e-mail client does not have the necessary capabilities, just ignore the attached signature "smime.p7s".
smime.p7s
Description: S/MIME Cryptographic Signature