Seperate nimcache for libnimbus.so and libnimbus.a targets + keep output

arg
This commit is contained in:
kdeme 2019-11-26 18:53:04 +01:00
parent 90fd3f27a8
commit 2705826cc2
No known key found for this signature in database
GPG Key ID: 4E8DD21420AF43F5
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ wrappers: | build deps libnimbus.so go-checks
libnimbus.a: | build deps libnimbus.a: | build deps
echo -e $(BUILD_MSG) "build/$@" && \ echo -e $(BUILD_MSG) "build/$@" && \
rm -f build/$@ && \ rm -f build/$@ && \
$(ENV_SCRIPT) nim c --app:staticlib --noMain --nimcache:nimcache/libnimbus $(NIM_PARAMS) wrappers/libnimbus.nim && \ $(ENV_SCRIPT) nim c --app:staticlib --noMain --nimcache:nimcache/libnimbus_static $(NIM_PARAMS) -o:build/$@ wrappers/libnimbus.nim && \
mv libnimbus build/$@ # workaround for https://github.com/nim-lang/Nim/issues/12745 [[ -e "$@" ]] && mv "$@" build/ # workaround for https://github.com/nim-lang/Nim/issues/12745
wrappers-static: | build deps libnimbus.a go-checks wrappers-static: | build deps libnimbus.a go-checks
echo -e $(BUILD_MSG) "build/C_wrapper_example_static" && \ echo -e $(BUILD_MSG) "build/C_wrapper_example_static" && \