Seperate nimcache for libnimbus.so and libnimbus.a targets + keep output
arg
This commit is contained in:
parent
90fd3f27a8
commit
2705826cc2
4
Makefile
4
Makefile
|
@ -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" && \
|
||||||
|
|
Loading…
Reference in New Issue