-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from hannesm/no-xen
remove mirage-xen-posix cross-compilation rule (unneeded since mirage-xen 6.0.0)
- Loading branch information
Showing
11 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# JBUILDER_GEN | ||
# DUNE_GEN | ||
|
||
xen_linkopts = "-l:xen/libbigstringaf_xen_stubs.a" | ||
freestanding_linkopts = "-l:freestanding/libbigstringaf_freestanding_stubs.a" | ||
freestanding_linkopts = "-l:libbigstringaf_freestanding_stubs.a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(lang dune 1.0) | ||
(lang dune 2.6) | ||
(name bigstringaf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
PKG_CONFIG_PATH := $(shell opam config var prefix)/lib/pkgconfig | ||
|
||
EXISTS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --exists ocaml-freestanding; echo $$?) | ||
|
||
.PHONY: all clean | ||
all: libbigstringaf_freestanding_stubs.a | ||
|
||
ifeq ($(EXISTS), 1) | ||
libbigstringaf_freestanding_stubs.a: | ||
touch $@ | ||
else | ||
CC ?= cc | ||
FREESTANDING_CFLAGS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags ocaml-freestanding) | ||
CFLAGS := -O3 $(FREESTANDING_CFLAGS) | ||
|
||
OBJS=bigstringaf_stubs.o | ||
|
||
libbigstringaf_freestanding_stubs.a: $(OBJS) | ||
$(AR) r $@ $^ | ||
endif | ||
|
||
clean: | ||
$(RM) $(OBJS) libbigstringaf_freestanding_stubs.a |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
(library | ||
(name bigstringaf_freestanding) | ||
(public_name bigstringaf.freestanding) | ||
(optional) | ||
(libraries bigarray-compat ocaml-freestanding) | ||
(c_names bigstringaf_stubs) | ||
(c_flags (:include cflags.sexp))) | ||
(copy_files# ../bigstringaf_stubs.c) | ||
|
||
(rule (copy# ../bigstringaf_stubs.c bigstringaf_stubs.c)) | ||
(rule | ||
(deps Makefile bigstringaf_stubs.c) | ||
(targets libbigstringaf_freestanding_stubs.a) | ||
(action | ||
(no-infer | ||
(progn | ||
(run %{make}))))) | ||
|
||
(rule (with-stdout-to cflags.sexp (run ./cflags.sh))) | ||
(install | ||
(section lib) | ||
(files libbigstringaf_freestanding_stubs.a)) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
(executables | ||
(test | ||
(name test_bigstringaf) | ||
(libraries alcotest bigstringaf) | ||
(modules test_bigstringaf s) | ||
(names test_bigstringaf)) | ||
|
||
(alias | ||
(name runtest) | ||
(package bigstringaf) | ||
(deps (:test test_bigstringaf.exe)) | ||
(action (run %{test}))) | ||
(modules test_bigstringaf s)) |