[NinjaBuildCommand] Factor out a helper for detecting immediately cyclic inputs.
[NinjaBuildCommand] Factor out a helper for detecting immediately cyclic inputs.
apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild,apple/swift-llbuild