OpenMake Meister

GetFlag( $flagString, @possibleFlags );

 

This function is used with Ant Tasks Javac and Rmic to get the compiler name. Unlike 'GetCompiler', only the compiler name is returned, without the fully qualified path.

 

USAGE:

($newFlagString, $myFlag) = GetFlag( $flagString, @possibleFlags);

 

RETURNS:

($newFlagString, $myFlag)

$newFlagString is $flagString

without the matched flag and the first found item from the list of possible items from:

@possibleFlags.   $myFlag

  is the matched flag string.