Skip to content

Commit

Permalink
xen-linking: add support for linking cstubs on xen target
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed Apr 15, 2018
1 parent 9b65e95 commit 87b2fa1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions META.bigstring.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xen_linkopts = "-lbigstringaf_stubs_xen"
3 changes: 3 additions & 0 deletions bigstringaf.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ depends: [
"alcotest" {test}
"base-bigarray"
]
depopts: [
"mirage-xen-ocaml"
]
available: [ ocaml-version >= "4.03.0" ]
10 changes: 10 additions & 0 deletions lib/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@
(javascript_files (runtime.js))
))
))

(rule (copy# bigstringaf_stubs.c bigstringaf_stubs_xen.c))

(rule
(with-stdout-to cflags-xen.sexp
(progn
(echo "(")
(run pkg-config pkg-config --static mirage-xen --cflags)
(echo ")")
)))

0 comments on commit 87b2fa1

Please sign in to comment.