File tree Expand file tree Collapse file tree 4 files changed +18
-16
lines changed Expand file tree Collapse file tree 4 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 7
7
- UPDATE_GCC_BINUTILS=1
8
8
matrix :
9
9
- OCAML_VERSION=4.02
10
- - OCAML_VERSION=4.02 DEPOPTS="lwt cstruct-lwt"
11
10
- OCAML_VERSION=4.03
12
- - OCAML_VERSION=4.03 DEPOPTS="lwt cstruct-lwt"
13
- - OCAML_VERSION=4.03 DEPOPTS="mirage-entropy"
14
11
- OCAML_VERSION=4.04
15
- - OCAML_VERSION=4.04 DEPOPTS="lwt cstruct-lwt"
16
- - OCAML_VERSION=4.04 DEPOPTS="mirage-xen"
17
12
- OCAML_VERSION=4.05
18
13
- OCAML_VERSION=4.05 DEPOPTS="lwt cstruct-lwt"
19
- - OCAML_VERSION=4.05 DEPOPTS="mirage-solo5 mirage-entropy"
20
- - OCAML_VERSION=4.06
14
+ - OCAML_VERSION=4.06 TESTS=true
15
+ - OCAML_VERSION=4.06 TESTS=true NOCRYPTO_ACCELERATE="false"
21
16
- OCAML_VERSION=4.06 DEPOPTS="lwt cstruct-lwt"
17
+ - OCAML_VERSION=4.04 DEPOPTS="mirage-xen"
22
18
- OCAML_VERSION=4.06 DEPOPTS="mirage-solo5 mirage-entropy"
23
19
notifications :
24
20
email : false
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ true: package(bytes cstruct)
17
17
<mirage>: include
18
18
<mirage/*.ml{,i}>: package(lwt mirage-entropy)
19
19
20
- <**/*.c>: ccopt(--std=c99 -Wall -Wextra -O3)
20
+ <**/*.c>: ccopt(-D_DEFAULT_SOURCE - -std=c99 -Wall -Wextra -O3)
21
21
<**/aes_aesni.c>: ccopt(-Wno-implicit-fallthrough)
22
22
23
- <bench/*>: use_nocrypto, package(zarith cstruct.unix )
23
+ <bench/*>: use_nocrypto, package(zarith)
24
24
<tests/*>: use_nocrypto, package(zarith oUnit)
25
25
26
26
<rondom>: -traverse
Original file line number Diff line number Diff line change @@ -9,11 +9,18 @@ license: "ISC"
9
9
tags: [ "org:mirage" ]
10
10
available: [ ocaml-version >= "4.02.0" ]
11
11
12
- build: ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "false"
13
- "--with-lwt" "%{lwt+cstruct-lwt:installed}%"
14
- "--xen" "%{mirage-xen:installed}%"
15
- "--mirage" "%{mirage-entropy+lwt:installed}%"
16
- "--freestanding" "%{mirage-solo5:installed}%"]
12
+ build: [
13
+ [ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"
14
+ "--tests" "false"
15
+ "--with-lwt" "%{lwt+cstruct-lwt:installed}%"
16
+ "--xen" "%{mirage-xen:installed}%"
17
+ "--mirage" "%{mirage-entropy+lwt:installed}%"
18
+ "--freestanding" "%{mirage-solo5:installed}%" ]
19
+ [ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"
20
+ "--tests" "true" ] {test}
21
+ ]
22
+ run-test: ["ocaml" "pkg/pkg.ml" "test" ]
23
+
17
24
18
25
depends: [
19
26
"ocamlfind" {build}
Original file line number Diff line number Diff line change 2
2
#define H__NOCRYPTO
3
3
4
4
#include <stdint.h>
5
- #define __USE_MISC
6
-
7
5
#if defined(__FreeBSD__ ) || defined(__DragonFly__ ) || defined(__NetBSD__ ) || defined(__OpenBSD__ )
8
6
#include <sys/endian.h>
9
7
#elif defined(__APPLE__ )
10
8
#include <machine/endian.h>
11
9
#else
10
+ // Needs _DEFAULT_SOURCE on Linux.
12
11
#include <endian.h>
13
12
#endif
14
13
You can’t perform that action at this time.
0 commit comments