mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Cray Fortran uses mangling of the form `my_sub$my_module_` with the
subroutine name first. Teach FortranCInterface to detect this case.
Add `FortranCInterface_MODULE_{,_}ORDER` result variables to report it.
With optimizations on, Cray Fortran inlines the module subroutine into
the calling object, so our symbol with the `INFO` string is not used.
Add a directive to suppress inlining to avoid this.
8 lines
123 B
Fortran
8 lines
123 B
Fortran
subroutine call_mod
|
|
!DIR$ NOINLINE
|
|
use mymodule
|
|
use my_module
|
|
call mysub()
|
|
call my_sub()
|
|
end subroutine call_mod
|