def main()

in runner.py [0:0]


def main():
    """Execute specified indexed project actions."""
    args = parse_args()

    if args.default_timeout:
        common.set_default_execute_timeout(args.default_timeout)

    # DISABLED DUE TO: rdar://59302454.
    # To track removing this line: rdar://59302467.
    xcodebuild_flags = args.add_xcodebuild_flags
    xcodebuild_flags += (' ' if xcodebuild_flags else '') + 'DEBUG_INFORMATION_FORMAT=dwarf'

    # Use clang for building xcode projects.
    if args.clang:
        xcodebuild_flags += ' CC=%s' % args.clang

    swift_flags = args.add_swift_flags

    time_reporter = None
    if args.report_time_path:
        time_reporter = project_future.TimeReporter(args.report_time_path)

    index = json.loads(open(args.projects).read())
    result = project_future.ProjectListBuilder(
        args.include_repos,
        args.exclude_repos,
        args.verbose,
        project_future.ProjectBuilder.factory(
            args.include_versions,
            args.exclude_versions,
            args.verbose,
            project_future.VersionBuilder.factory(
                args.include_actions,
                args.exclude_actions,
                args.verbose,
                project_future.CompatActionBuilder.factory(
                    args.swiftc,
                    args.swift_version,
                    args.swift_branch,
                    args.job_type,
                    args.sandbox_profile_xcodebuild,
                    args.sandbox_profile_package,
                    swift_flags,
                    xcodebuild_flags,
                    args.skip_clean,
                    args.build_config,
                    args.strip_resource_phases,
                    args.only_latest_versions,
                    args.project_cache_path,
                    time_reporter,
                    args.override_swift_exec
                ),
            ),
        ),
        index
    ).build()
    common.debug_print(str(result))
    return 0 if result.result in [project_future.ResultEnum.PASS,
                                  project_future.ResultEnum.XFAIL] else 1