Jeremie Dimino
c71acbd930
Make the testsuite pass on Windows
...
Thought it still requires `sh` and a few Unix tools
2017-09-22 01:59:40 +01:00
Jeremie Dimino
af5208416f
Simplify overrides in the bootstrap path
...
- vendored libraries are replaced by files in `vendor/boot`
- files named `XXX.boot.EXT` replace their `XXX.EXT` equivalent
For instance, to build boot.exe, we use `src/glob_lexer.boot.ml`
rather than `src/glob_lexer.ml` (which would be generated from
`src/glob_lexer.mll`).
2017-09-22 01:52:04 +01:00
Jeremie Dimino
059e0dab66
Add an 'accept-corrections' target
...
To copy over all the .corrected files
2017-09-22 01:51:16 +01:00
Jeremie Dimino
aca4cd47d2
Include Makefile.dev in Makefile
...
So that we can define a different default target while developping.
2017-09-22 01:50:59 +01:00
Jeremie Dimino
47d1f74ef0
Explain the difference between copy_files and copy_files#
2017-09-10 02:39:34 +01:00
Jeremie Dimino
e27f7a8368
Update Changelog
2017-09-10 02:36:02 +01:00
François Bobot
cecf0a2aaf
Add (copy_files <glob>) stanza ( #35 )
...
Add (copy_files <glob>) and (copy_files# <glob>) stanzas. These
stanzas setup rules for copying files from a sub-directory to the
current directory.
This provides a reasonable way to support multi-directory
library/executables in jbuilder.
2017-09-10 02:31:07 +01:00
Jeremie Dimino
d55c807d51
Allow to localize the error reported by Path.relative/of_string
...
Since these are often used to parse user input.
2017-09-10 01:26:06 +01:00
Rudi Grinberg
ee63bcafaf
Update CHANGES for 1.0+beta13
2017-09-05 20:51:11 -04:00
Rudi Grinberg
1da474bc4a
Merge branch 'pr/238'
2017-09-05 20:41:19 -04:00
David Allsopp
6a3c51c358
Ensure executables also depend on archive files
...
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-09-05 19:53:08 -04:00
Rudi Grinberg
a7067f5aa8
Merge pull request #224 from samoht/doc-index
...
Add a toplevel html index to the docs
2017-08-27 15:55:50 -04:00
David Allsopp
da240468d0
Ensure .cmxs depends on archive file
...
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-08-26 15:06:32 +01:00
David Allsopp
1053d4e65a
Ensure .cmxa files depend on object files
...
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-08-26 15:05:54 +01:00
David Allsopp
77c79ebff8
Ensure executables depend on object files
...
Previously, in Mode.Native, executables depended on .cmx files only.
This was fine when changes were detected by timestamp, but it is
possible to semantically alter an .ml such that only the .o/.obj file
alters. In this situation, Jbuilder would rebuild the .cmx file, but not
relink the executable.
Fixes #237 .
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-08-26 14:01:20 +01:00
David Allsopp
9180f88dc3
Add Path.change_extension
...
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-08-26 14:01:12 +01:00
Rudi Grinberg
a7406ab169
Merge pull request #233 from dra27/improve-include-error
...
Improve error handling for (:include )
2017-08-25 14:00:48 -04:00
David Allsopp
2d100b1150
Improve error handling for (:include )
...
The form (:include $(SCOPE_ROOT)\foo) requires quoting, but the error
message was cryptic ("Error: undefined symbol include").
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-08-25 11:12:15 +01:00
Thomas Gazagnaire
71952a0983
Add a toplevel html index to the docs
2017-08-22 11:12:33 +02:00
David Allsopp
7031e78778
Don't require chocolatey
2017-08-22 10:01:51 +01:00
Rudi Grinberg
1c85e646bc
Update changelog for 1.0+beta12 release
2017-08-18 19:51:31 -04:00
Jeremie Dimino
374f548eab
Update changelog
2017-08-17 15:13:11 +01:00
Jeremie Dimino
297e82061e
Update_file --> Write_file
...
The difference is not meaningful anymore. Also expose Write_file as
write-file.
2017-08-17 15:13:11 +01:00
Jeremie Dimino
7a8fa99f5a
Remove Create_file action
...
Makes no sense now that we use digests rather than timestamps
2017-08-17 15:13:11 +01:00
Jeremie Dimino
508c90201f
Replace timestamp checks by file contents checks
2017-08-17 15:13:11 +01:00
Jérémie Dimino
ca81d1704e
Get rid of the deprecated-ppx-method sub-package ( #222 )
...
Instead, inline the fields it contains into the parent package
2017-08-17 12:41:49 +01:00
David Allsopp
7d1e0c47e2
Allow bootstrap.ml to be compiled ( #221 )
...
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
2017-08-16 16:08:03 +01:00
Jérémie Dimino
6bed864057
Better behavior when the targets of a rule already exist in the source tree ( #218 )
...
Warn when a file is both present in the source tree and generated by
a rule. Before, jbuilder would silently ignore the rule. One now has
to add a field `(fallback)` to custom rules to keep the current
behavior.
2017-08-15 11:16:11 +01:00
Nicolás Ojeda Bär
3b1182c23a
Fix typos
2017-08-15 07:32:17 +01:00
Jeremie Dimino
142155551d
Switch examples testing to cram
2017-08-11 11:36:33 +01:00
Jeremie Dimino
e1114d18df
Reorganize tests
...
Switch blackbox tests to cram testing.
2017-08-11 11:36:33 +01:00
Rudi Grinberg
188134775f
Make warning 31 non fatal for utop ( #211 )
...
This allows jbuilder to create toplevels with conflicting module names. Such as
ExtLib's and Camomiles' UChar for example.
2017-08-09 10:04:01 +01:00
Jeremie Dimino
b913a42739
Fix documentation about library dependencies
2017-08-08 13:56:28 +01:00
Daniel Hillerström
267ea46c4d
Fixed a typo in the documentation.
2017-08-06 11:04:57 +01:00
Jeremie Dimino
06b47a73f6
Do not accept per_file anymore
...
It was renamed per_module and it is planned to reuse per_file for
another purpose.
2017-08-04 09:24:02 +01:00
Jeremie Dimino
3ab39c7c7a
Update changelog
2017-08-04 09:22:03 +01:00
Rudi Grinberg
b668d9189f
Add a utop subcommand ( #183 )
...
Add a utop subcommand that build and execute a utop where all the libraries defined in the current directory are immediately available for interactive use.
2017-08-04 08:59:35 +01:00
Jeremie Dimino
46df511dd4
Update changelog
2017-08-03 17:30:04 +01:00
David Allsopp
be4b5fa454
Extend (:include ) form to library_flags
...
library_flags already included variable expansion.
2017-08-03 17:28:32 +01:00
David Allsopp
3a64432d04
Expand variables in flags
...
Extend Ordered_set_lang.Unexpanded.expand to include a mapping function
for the S-expression for each atom. The previous behaviour can be
achieved with ~f:Sexp.Of_sexp.string, but this allows the S-expression
to be parsed using String_with_vars.t, thus allowing variable expansion.
2017-08-03 17:28:32 +01:00
David Allsopp
83bba5af61
Use an AST for Ordered_set_lang
2017-08-03 17:28:32 +01:00
David Allsopp
13b0eb9f2b
Convert link_flags to the ordered set DSL
2017-08-03 17:28:32 +01:00
David Allsopp
ec29651cff
Extend (:include ) form to js_of_ocaml flags
2017-08-03 17:28:32 +01:00
David Allsopp
cebbb219e7
Extend (:include ) form to OCaml flags
...
flags, ocaml_flags and ocamlopt_flags now support the (:include ) form
of the ordered set language.
2017-08-03 17:28:32 +01:00
David Allsopp
712981d847
Make Ocaml_flags.t abstract
2017-08-03 17:28:32 +01:00
Jérémie Dimino
ea377efbbb
Use absolute paths for ppx drivers in .merlin files ( #201 )
...
Fixes #196 and #199
2017-07-28 16:49:45 +01:00
aalekseyev
b5f0b85e56
Allow digits and apostrophes in library/module names ( #206 )
...
* Allow digits in library/module names
Also include the malformed module name in the error message so it's more clear what it's complaining about.
* Update jbuild.ml
2017-07-28 08:40:09 +01:00
Jeremie Dimino
2f801cf17f
typo
2017-07-27 12:08:19 +01:00
Jeremie Dimino
b1e140eef3
Add --destdir + document --destdir, --prefix and --libdir
...
Should help #202
2017-07-27 12:06:14 +01:00
Jeremie Dimino
f267e3fd9c
Update changelog
2017-07-25 17:10:26 +01:00