chore: add installation targets in Makefile

MacOS require a way to find the runtime library when trying to build a
shared library at runtime, so we add a way to install it globally for
testing
This commit is contained in:
youben11
2022-01-20 10:59:16 +01:00
committed by Ayoub Benaissa
parent 71cccc6a89
commit 6d3af7fcda
2 changed files with 18 additions and 1 deletions

View File

@@ -155,6 +155,7 @@ jobs:
run: |
cd compiler
export CONCRETE_PROJECT=${{ github.workspace }}/concrete
make install_runtime_lib
make test
BuildAndTestDF:

View File

@@ -73,6 +73,18 @@ test: test-check test-end-to-end-jit test-python support-unit-test testlib-unit-
test-dataflow: test-end-to-end-jit-dfr test-end-to-end-jit-auto-parallelization
# install/uninstall
install: install_runtime_lib
uninstall: uninstall_runtime_lib
install_runtime_lib: concretecompiler
cp $(BUILD_DIR)/lib/libConcretelangRuntime* /usr/local/lib
uninstall_runtime_lib:
-rm /usr/local/lib/libConcretelangRuntime*
# unit-test
testlib-unit-test: build-testlib-unit-test
@@ -204,4 +216,8 @@ update_python_version:
package_py39 \
package_py310 \
release_tarballs \
update_python_version
update_python_version \
install \
uninstall\
install_runtime_lib \
uninstall_runtime_lib