NAKAMURA Takumi Profile picture
冥界一の CMake 愛
Jun 6, 2021 8 tweets 3 min read
#CLANG CAN BE BUILT WITHIN ONE MINUTE #LLVM

[2564/2564] Creating executable symlink bin/clang

real 0m56.685s
user 75m20.548s

* AWS c5a.24xlarge (96 vcpus)
* target=x86 MinSizeRel
* Using PGO+LTO clang and lld (up to 30% faster)

The trace.json is here; gist.github.com/chapuni/6b80af… Tweaks in CMake part of the LLVM tree

* Enhanced LLVM_ENABLE_MODULES
** Generator and targets for explicit modules
* Modularized tblgen (invokes particular tblgen-emitters.so)
* Introduce obj.LLVMSupportLite for tblgen
* KILL target_link_libraries(PUBLIC) !!!IMPORTANT!!!