conditional compilation for ocaml 4

This commit is contained in:
craff 2022-12-06 17:36:23 -10:00
parent 1435d6b511
commit 405623610d
3 changed files with 4 additions and 1 deletions

View file

@ -1 +1 @@
(lang dune 2.0)
(lang dune 2.5)

View file

@ -7,6 +7,7 @@
(executable
(name sse_server_domains)
(modules sse_server_domains)
(enabled_if (>= %{ocaml_version} 5.00.0))
(libraries tiny_httpd tiny_httpd_domains unix ptime ptime.clock.os))
(executable
@ -23,6 +24,7 @@
(executable
(name echo_domains)
(flags :standard -warn-error -a+8)
(enabled_if (>= %{ocaml_version} 5.00.0))
(modules echo_domains vfs_domains)
(libraries tiny_httpd tiny_httpd_camlzip tiny_httpd_domains))

View file

@ -2,6 +2,7 @@
(library
(name tiny_httpd_domains)
(public_name tiny_httpd_domains)
(enabled_if (>= %{ocaml_version} 5.00.0))
(synopsis "Allowing to use ocaml domains instead of theads")
(flags :standard -safe-string -warn-error -a+8)
(libraries tiny_httpd domainslib))