This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,35 @@
The dune cache should be enabled by default
$ echo "(lang dune 3.17)" > dune-project
$ cat > dune << EOF
> (library
> (name foo))
> EOF
$ cat > foo.ml << EOF
> let f x y = x + y
> EOF
Set up cache directory
$ export DUNE_CACHE_ROOT=$(pwd)/dune_test_cache
$ mkdir $DUNE_CACHE_ROOT
$ DUNE_CACHE=disabled dune build
$ ls $DUNE_CACHE_ROOT
We have not written anything to the cache yet.
Change source files to force a recompilation
$ cat > foo.ml << EOF
> let f x y = x - y
> EOF
$ dune build
$ ls $DUNE_CACHE_ROOT | sort
files
meta
temp
values
Cache has been written to!