Skip to content

Commit 5a17d2a

Browse files
committed
Dump a VERSION file in the build directory
As noted in #372, some users may need to identify which version of wasi-sdk they are using after it has been downloaded. There are many ways to solve this, but the one I chose here is to dump the wasi-sdk version into a `VERSION` file and follow that up with several dependency versions that may be helpful to note when troubleshooting. Ideally someone could paste the contents of that file when filing a bug. If we adopt this approach, this fixes #372.
1 parent d0cafb9 commit 5a17d2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ build/config.BUILT:
256256
cp cmake/Platform/WASI.cmake $(BUILD_PREFIX)/share/cmake/Platform
257257
touch build/config.BUILT
258258

259-
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT
259+
build/version.BUILT:
260+
$(VERSION_SCRIPT) dump > $(BUILD_PREFIX)/VERSION
261+
touch build/version.BUILT
262+
263+
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT build/version.BUILT
260264

261265
strip: build/llvm.BUILT
262266
./strip_symbols.sh $(BUILD_PREFIX)/bin

0 commit comments

Comments
 (0)