mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-08 04:05:35 -05:00
conditional compilation for ocaml 4
This commit is contained in:
parent
1435d6b511
commit
405623610d
3 changed files with 4 additions and 1 deletions
|
|
@ -1 +1 @@
|
||||||
(lang dune 2.0)
|
(lang dune 2.5)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
(executable
|
(executable
|
||||||
(name sse_server_domains)
|
(name sse_server_domains)
|
||||||
(modules 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))
|
(libraries tiny_httpd tiny_httpd_domains unix ptime ptime.clock.os))
|
||||||
|
|
||||||
(executable
|
(executable
|
||||||
|
|
@ -23,6 +24,7 @@
|
||||||
(executable
|
(executable
|
||||||
(name echo_domains)
|
(name echo_domains)
|
||||||
(flags :standard -warn-error -a+8)
|
(flags :standard -warn-error -a+8)
|
||||||
|
(enabled_if (>= %{ocaml_version} 5.00.0))
|
||||||
(modules echo_domains vfs_domains)
|
(modules echo_domains vfs_domains)
|
||||||
(libraries tiny_httpd tiny_httpd_camlzip tiny_httpd_domains))
|
(libraries tiny_httpd tiny_httpd_camlzip tiny_httpd_domains))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
(library
|
(library
|
||||||
(name tiny_httpd_domains)
|
(name tiny_httpd_domains)
|
||||||
(public_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")
|
(synopsis "Allowing to use ocaml domains instead of theads")
|
||||||
(flags :standard -safe-string -warn-error -a+8)
|
(flags :standard -safe-string -warn-error -a+8)
|
||||||
(libraries tiny_httpd domainslib))
|
(libraries tiny_httpd domainslib))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue