File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ --sysroot =<CFGDIR>/../share/wasi-sysroot
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ ExternalProject_Add(llvm-build
9090 -DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasi
9191 -DLLVM_INSTALL_BINUTILS_SYMLINKS=TRUE
9292 -DLLVM_ENABLE_LIBXML2=OFF
93- -DDEFAULT_SYSROOT=../share/wasi-sysroot
9493 # Pass `-s` to strip symbols by default and shrink the size of the
9594 # distribution
9695 -DCMAKE_EXE_LINKER_FLAGS=-s
@@ -159,6 +158,18 @@ copy_misc_file(wasi-sdk-p1.cmake cmake)
159158copy_misc_file(wasi-sdk-p2.cmake cmake)
160159copy_misc_file(cmake/Platform/WASI.cmake cmake/Platform)
161160
161+ function (copy_cfg_file compiler)
162+ set (dst ${wasi_tmp_install} /bin/${compiler} .cfg)
163+ add_custom_command (
164+ OUTPUT ${dst}
165+ COMMAND cmake -E copy ${CMAKE_CURRENT_SOURCE_DIR} /clang.cfg ${dst} )
166+ add_custom_target (copy-${compiler} DEPENDS ${dst} )
167+ add_dependencies (misc-files copy-${compiler} )
168+ endfunction ()
169+
170+ copy_cfg_file(clang)
171+ copy_cfg_file(clang++)
172+
162173include (wasi-sdk-dist)
163174
164175# Figure out the name of the artifact which is either explicitly specified or
You can’t perform that action at this time.
0 commit comments