def process_target(target_str):
    """
    Extract target architecture from a string of verbose compiler
    invocation output.
    """
    target_label = "Target:"
    target_clean = ""

    for line in target_str.splitlines(True):
        line = line.strip().split()
        if len(line) > 1 and line[0] == target_label:
            target_clean = line[1]

    return target_clean