- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I'd like to embed the compiler / linker args in my program, I'm using windows / visual fortran tooling, but also interested in cmake solution.
I tried to look at environment variables in pre-build step (by calling "set") but it doesn't seem to have the information I need.
Is there a $(SomeVariable) that visual fortran generates before calling ifx?
I think if such variable is defined, I can use this to automate what I want.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean the standard routines COMPILER_VERSION and COMPILER_OPTIONS perhaps? These capture the "exact" information about what compiler was used to build your program and the options that were used. They are contained in the module ISO_FORTRAN_ENV.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean the standard routines COMPILER_VERSION and COMPILER_OPTIONS perhaps? These capture the "exact" information about what compiler was used to build your program and the options that were used. They are contained in the module ISO_FORTRAN_ENV.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Arjen_Markus this is exactly what I needed, thanks for the pointer!
https://fortranwiki.org/fortran/show/compiler_options
I think the linker arguments are less of an issue in my context.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page