9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 03:23:29 +01:00

Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 into dev-stable
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
eginer 2023-02-24 21:38:34 +01:00
commit c29cbc14ed
6 changed files with 8 additions and 6 deletions

View File

@ -316,7 +316,7 @@ OCaml
.. code:: bash .. code:: bash
opam install ocamlbuild cryptokit zmq sexplib ppx_sexp_conv ppx_deriving getopt opam install ocamlbuild zmq sexplib ppx_sexp_conv ppx_deriving getopt
Docopt Docopt

2
configure vendored
View File

@ -19,6 +19,8 @@ git submodule update
# Update ARM or x86 dependencies # Update ARM or x86 dependencies
ARCHITECTURE=$(uname -m) ARCHITECTURE=$(uname -m)
cd ${QP_ROOT}/external/qp2-dependencies cd ${QP_ROOT}/external/qp2-dependencies
git checkout master
git pull
echo "Architecture: $ARCHITECTURE" echo "Architecture: $ARCHITECTURE"
cd ${QP_ROOT} cd ${QP_ROOT}

@ -1 +1 @@
Subproject commit f40bde0925808bbec0424b57bfcef1b26473a1c8 Subproject commit ce14f57b50511825a9fedb096749200779d3f4d4

View File

@ -43,7 +43,7 @@ $(QP_ROOT)/data/executables: remake_executables element_create_db.byte Qptypes.m
$(QP_ROOT)/ocaml/element_create_db.byte $(QP_ROOT)/ocaml/element_create_db.byte
external_libs: external_libs:
opam install cryptokit sexplib opam install sexplib
qpackage.odocl: $(MLIFILES) qpackage.odocl: $(MLIFILES)
ls $(MLIFILES) | sed "s/\.mli//" > qpackage.odocl ls $(MLIFILES) | sed "s/\.mli//" > qpackage.odocl

View File

@ -4,8 +4,8 @@ open Sexplib
let to_md5 sexp_of_t t = let to_md5 sexp_of_t t =
sexp_of_t t sexp_of_t t
|> Sexp.to_string |> Sexp.to_string
|> Cryptokit.hash_string (Cryptokit.Hash.md5 ()) |> Digest.string
|> Cryptokit.transform_string (Cryptokit.Hexa.encode ()) |> Digest.to_hex
|> MD5.of_string |> MD5.of_string
;; ;;

View File

@ -1,4 +1,4 @@
true: package(cryptokit,zarith,zmq,str,sexplib,ppx_sexp_conv,ppx_deriving,getopt) true: package(zarith,zmq,str,sexplib,ppx_sexp_conv,ppx_deriving,getopt)
true: thread true: thread
false: profile false: profile
<*byte> : linkdep(c_bindings.o), custom <*byte> : linkdep(c_bindings.o), custom