mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-07 03:35:34 -05:00
fake vfs module on non linux
This commit is contained in:
parent
7347f55d14
commit
d36011bce6
1 changed files with 10 additions and 0 deletions
|
|
@ -40,3 +40,13 @@
|
||||||
--mirror=files/
|
--mirror=files/
|
||||||
--file=test_out.txt,%{out}
|
--file=test_out.txt,%{out}
|
||||||
--url=example_dot_com,http://example.com)))
|
--url=example_dot_com,http://example.com)))
|
||||||
|
|
||||||
|
(rule
|
||||||
|
(targets vfs.ml)
|
||||||
|
(enabled_if (not (= %{system} "linux")))
|
||||||
|
(action
|
||||||
|
(with-stdout-to
|
||||||
|
%{targets}
|
||||||
|
(progn
|
||||||
|
(echo "let embedded_fs = Tiny_httpd_dir.Embedded_fs.create ~mtime:0. ()")
|
||||||
|
(echo "let vfs = Tiny_httpd_dir.Embedded_fs.to_vfs embedded_fs")))))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue