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.
pull/403/head
Andrew Brown 10 months ago
parent 2436b99f1d
commit 0409839729

@ -256,7 +256,11 @@ build/config.BUILT:
cp cmake/Platform/WASI.cmake $(BUILD_PREFIX)/share/cmake/Platform cp cmake/Platform/WASI.cmake $(BUILD_PREFIX)/share/cmake/Platform
touch build/config.BUILT touch build/config.BUILT
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT build/version.BUILT:
$(VERSION_SCRIPT) dump > $(BUILD_PREFIX)/VERSION
touch build/version.BUILT
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT build/version.BUILT
strip: build/llvm.BUILT strip: build/llvm.BUILT
./strip_symbols.sh $(BUILD_PREFIX)/bin ./strip_symbols.sh $(BUILD_PREFIX)/bin

Loading…
Cancel
Save