classify_build Subroutine

public pure subroutine classify_build(options, label, opt_flag)

Classify a compiler_options() string as debug/release/unknown and return the optimization flag actually present. Pure string scan; the last '-O' token wins (compilers honour the last -O). No MPI / no intrinsics.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: options
character(len=*), intent(out) :: label
character(len=*), intent(out) :: opt_flag