macro_rules! check_and_add_target {
    ($target_kind: expr, $is_target_kind: expr, $link_type: expr) => { ... };
}