File tree 2 files changed +13
-1
lines changed
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
90
90
-DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasi
91
91
-DLLVM_INSTALL_BINUTILS_SYMLINKS=TRUE
92
92
-DLLVM_ENABLE_LIBXML2=OFF
93
- -DDEFAULT_SYSROOT=../share/wasi-sysroot
94
93
# Pass `-s` to strip symbols by default and shrink the size of the
95
94
# distribution
96
95
-DCMAKE_EXE_LINKER_FLAGS=-s
@@ -159,6 +158,18 @@ copy_misc_file(wasi-sdk-p1.cmake cmake)
159
158
copy_misc_file(wasi-sdk-p2.cmake cmake)
160
159
copy_misc_file(cmake/Platform/WASI.cmake cmake/Platform)
161
160
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
+
162
173
include (wasi-sdk-dist)
163
174
164
175
# 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