Skip to content

Commit ac4e279

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 f23bb78 commit ac4e279

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
@@ -240,7 +240,11 @@ build/config.BUILT:
240240
cp cmake/Platform/WASI.cmake $(BUILD_PREFIX)/share/cmake/Platform
241241
touch build/config.BUILT
242242

243-
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT
243+
build/version.BUILT:
244+
./version dump > $(BUILD_PREFIX)/VERSION
245+
touch build/version.BUILT
246+
247+
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT build/version.BUILT
244248

245249
strip: build/llvm.BUILT
246250
./strip_symbols.sh $(BUILD_PREFIX)/bin

0 commit comments

Comments
 (0)