@ -55,6 +55,19 @@ set(tools
c + + f i l t
c + + f i l t
l l v m - c o n f i g )
l l v m - c o n f i g )
# B y d e f a u l t l i n k L L V M d y n a m i c a l l y t o a l l t h e v a r i o u s t o o l s . T h i s g r e a t l y
# r e d u c e s t h e b i n a r y s i z e o f a l l t h e t o o l s t h r o u g h a s h a r e d l i b r a r y r a t h e r t h a n
# s t a t i c a l l y l i n k i n g L L V M t o e a c h i n d i v i d u a l t o o l . T h i s r e q u i r e s a f e w o t h e r
# i n s t a l l t a r g e t s a s w e l l t o e n s u r e t h e a p p r o p r i a t e l i b r a r i e s a r e a l l i n s t a l l e d .
#
# A l s o n o t e t h a t t h e ` - w a s i - s d k ` v e r s i o n s u f f i x i s i n t e n d e d t o h e l p p r e v e n t
# t h e s e d y n a m i c l i b r a r i e s f r o m c l a s h i n g w i t h o t h e r s y s t e m l i b r a r i e s i n c a s e t h e
# ` l i b ` d i r g e t s p u t o n ` L D _ L I B R A R Y _ P A T H ` o r s i m i l a r .
if ( NOT WIN32 )
list ( APPEND default_cmake_args -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_VERSION_SUFFIX=-wasi-sdk )
list ( APPEND tools LLVM clang-cpp )
endif ( )
list ( TRANSFORM tools PREPEND --target= OUTPUT_VARIABLE build_targets )
list ( TRANSFORM tools PREPEND --target= OUTPUT_VARIABLE build_targets )
list ( TRANSFORM tools PREPEND --target=install- OUTPUT_VARIABLE install_targets )
list ( TRANSFORM tools PREPEND --target=install- OUTPUT_VARIABLE install_targets )