This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] CI: only build native target for bootstrapping-build
ClosedPublic

Authored by mizvekov on Nov 15 2021, 3:35 PM.

Details

Summary

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Diff Detail

Event Timeline

mizvekov created this revision.Nov 15 2021, 3:35 PM
mizvekov requested review of this revision.Nov 15 2021, 3:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2021, 3:35 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Rough estimate of improvement:

Number of source files built: 3610 -> 2589
Runtime: 24m -> 21m

ldionne accepted this revision.Nov 16 2021, 6:19 AM

Thanks for the improvement!

libcxx/utils/ci/run-buildbot
479

What is the difference between Native and host?

This revision is now accepted and ready to land.Nov 16 2021, 6:19 AM

Thanks for the review!

libcxx/utils/ci/run-buildbot
479

You can see at llvm/cmake/config-ix.cmake:497 that Native and host are just synonyms:

foreach (NATIVE_KEYWORD host Native)
  list(FIND LLVM_TARGETS_TO_BUILD ${NATIVE_KEYWORD} idx)
  if( NOT idx LESS 0 )
    list(REMOVE_AT LLVM_TARGETS_TO_BUILD ${idx})
    list(APPEND LLVM_TARGETS_TO_BUILD ${LLVM_NATIVE_ARCH})
    list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
  endif()
endforeach()