Skip to content

Commit 67cf9b2

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 436edaa commit 67cf9b2

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
@@ -230,7 +230,11 @@ build/config.BUILT:
230230
cp cmake/Platform/WASI.cmake $(BUILD_PREFIX)/share/cmake/Platform
231231
touch build/config.BUILT
232232

233-
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT
233+
build/version.BUILT:
234+
./version dump > $(BUILD_PREFIX)/VERSION
235+
touch build/version.BUILT
236+
237+
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT build/version.BUILT
234238

235239
strip: build/llvm.BUILT
236240
./strip_symbols.sh $(BUILD_PREFIX)/bin

0 commit comments

Comments
 (0)