Wojciech Meyer
c631c7a1dd
PR#6060: Add some missing compiler options to ocamlbuild. (Patch by Anil Madhavapeddy!)
...
* -short-paths is activated via the "short_paths" tag
* -principal is activated via the "principal" tag
* -strict_sequence now has a "strict_sequence" tag to alias the
"strict-sequence" tag that was already there, to follow the
convention of command-line options having dashes replaced by
underscores. It's easy to mess this up since incorrect tags
are silently ignored by ocamlbuild.
Add test cases that check if principal and strict-sequence have
been passed, and tweak the test suite slightly to make it easier
to match on failing_msg output.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13859 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-30 23:28:18 +00:00
Wojciech Meyer
fdf9cde11d
build: select win32 variants of unix and graph for mingw.
...
(Patch by Adrien Nader!)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13856 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-30 12:58:34 +00:00
Gabriel Scherer
4cedfd24c1
[PR#6059, patch by Anil Madhavapeddy] add -output-obj rules and targets to ocamlbuild for byte and native code
...
Three corresponding targets are added:
%.byte.o : bytecode object file
%.byte.c : bytecode source C file
%.native.o : native code object file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13849 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-30 08:34:42 +00:00
Gabriel Scherer
e7a503dc2a
PR#4502: ocamlbuild now reliably excludes the build-dir from hygiene check
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13794 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-17 13:12:40 +00:00
Gabriel Scherer
122caaf20b
ocamlbuild: when tag "native" is set, use ocamlopt instead of ocamlc for .mli->.cmi
...
This was requested (with a patch proposal) by "jessicah" in
PR#4613. Given that the effect of such changes are hard to test,
I commit this in trunk only, not version-4.01, to give more time to
detect eventual problems.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13787 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-16 19:07:45 +00:00
Gabriel Scherer
f79d1a4e2d
improve ocamlbuild API documentation (patch by Cristophe Troestler)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13786 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-16 17:04:29 +00:00
Gabriel Scherer
3ccc745b75
turn more (or) into (||) to please the new warning
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13708 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-28 12:16:10 +00:00
Gabriel Scherer
75b8c0184f
PR#5933 type-specialize 'let compare = compare' on ints and strings
...
According to the reporter 'sliquister', type-specialized comparison
can nearly halve compilation time in some cases. This patch applies
type-specialization throughout the OCaml distribution sources, so not
all changes will have performance utility, but in this case I think
it's best to be consistent, as I see no downside to the change.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13410 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-19 07:22:12 +00:00
Wojciech Meyer
b7c2d04ac9
[ocamlbuild] Real time update of the tests, by flushing the channel after each test result.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13273 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-23 23:57:14 +00:00
Wojciech Meyer
26d9127a1e
[ocamlbuild] Add some more tests for PR#4592 and PR#5752.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13272 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-23 23:40:19 +00:00
Wojciech Meyer
de1bc665c4
PR#5652: Fix duplicate tags
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13266 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-21 23:19:19 +00:00
Wojciech Meyer
6d36ae6831
Typo.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13264 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-19 10:44:23 +00:00
Wojciech Meyer
f9fcc6892a
Add test for new ocamlbuild -syntax option
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13263 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-19 10:44:22 +00:00
Wojciech Meyer
37bbb9bb16
Implement -syntax ocamlfind flag for ocamlbuild
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13262 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-19 10:44:19 +00:00
Wojciech Meyer
e82f05c3ef
ocamlbuild_test: Make root directory of tests before running them.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13261 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-19 10:44:18 +00:00
Wojciech Meyer
67101c77f3
PR#5652: Add support for camlp4 native plugin.
...
Patch by Hongbo Zhang!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13260 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-19 10:44:17 +00:00
Wojciech Meyer
4c62de5d42
Use absolute paths in ocamlbuild_test.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13259 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-19 10:44:15 +00:00
Wojciech Meyer
2cb5131384
PR#4592: Add test case.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13256 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-17 07:34:58 +00:00
Wojciech Meyer
a0a8b4b04f
PR#5686: Add testcase.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13255 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-17 07:06:41 +00:00
Xavier Clerc
75df311d02
PR#5891: support rectypes tag for mlpack (ocamlbuild)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13243 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-16 12:17:19 +00:00
Wojciech Meyer
5cb2518dd7
Implement memoization for expand_module to improve performance
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13240 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-16 07:36:07 +00:00
Wojciech Meyer
d9fec1107d
small renaming in the option doc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13239 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-16 07:36:06 +00:00
Wojciech Meyer
01e27644ba
-which option for ocamlbuild
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13238 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-15 21:32:52 +00:00
Wojciech Meyer
9d51dccfae
ocamlbuild should look for ocamlfind on the path not in the root directory
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13237 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-15 21:10:04 +00:00
Wojciech Meyer
c133e90cf1
PR#5885: Fix: Incorrect rule for compiling C stubs when shared libraries are not supported.
...
Patch by Jérôme Vouillon!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13233 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-14 07:43:49 +00:00
Wojciech Meyer
7ce7cece56
added ocamlbuild test (fix for PR#5763) .
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13232 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-14 00:08:13 +00:00
Alain Frisch
706f815450
#5864 : add a find operation to Set.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-08 09:01:02 +00:00
Wojciech Meyer
4bc9fa5359
PR#5212: Fix: ocamlbuild does not warn for bad input
...
Patch by Ygrek!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13193 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 04:53:51 +00:00
Wojciech Meyer
40dc45cb77
Add some test for ocamlbuild. Make ocamlbuild_test test function handle optional parameters and support expected failures
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13191 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 01:37:26 +00:00
Wojciech Meyer
cb09743fc5
Commit also .depend file for ocamlbuild Makefile.noboot
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13190 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 00:33:29 +00:00
Wojciech Meyer
2a415d5ec0
Initial version of Makefile.noboot that does not depend on ocamlbuild being booted
...
Still requires some work, in particular:
* native build of ocamlbuild
* building Camlp4 still is not working
* not vpath leftover files break the further build
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13188 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 00:33:27 +00:00
Wojciech Meyer
51e74fff88
Remove old module from ocamlbuild bootstrap Std_signatures to tide up
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13187 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 00:33:26 +00:00
Wojciech Meyer
293bf33f1d
Add 'K' class of warning tag to ocamlbuild
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13186 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 00:33:25 +00:00
Wojciech Meyer
c05b5ccea7
ocamlbuild_test, remove test directory tree only if exists
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13185 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-01 00:33:23 +00:00
Wojciech Meyer
7ce9e125d3
Removed sporious modules from .odocl
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13178 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-31 01:04:22 +00:00
Wojciech Meyer
d2335da36f
More work on ocamlbuild testsuite.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13177 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-30 03:25:35 +00:00
Wojciech Meyer
21735ad375
New testing infrastructure for ocamlbuild (PR#5755)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13170 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-29 04:34:30 +00:00
Wojciech Meyer
655cf17e4e
Revert "PR#5652: Try to use camlp4.opt if it's possible"
...
camlp4.opt works only with native plugins therefore the fix will break bytecode camlp4 plugins.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13167 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-28 18:19:27 +00:00
Wojciech Meyer
2ebc2c2790
Update reference file for the ocamlbuild tests - still need some more work
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13155 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-22 01:34:23 +00:00
Wojciech Meyer
a3c8cd0170
Fix PR#5752.
...
Patch by Grégoire Sutre!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13154 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-22 01:34:21 +00:00
Wojciech Meyer
1cfa222553
Fix test
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-22 01:34:20 +00:00
Wojciech Meyer
38dc96e0be
Always store full path to ocamlbuild in a variable that is available to the sub-tests
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13152 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-22 01:34:19 +00:00
Wojciech Meyer
469ae8ae60
Use name of the the tools in high detail level logs, this helps comparing logs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13151 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-22 01:34:16 +00:00
Jonathan Protzenko
e41b5df033
Add a strict_sequence flag to OCamlbuild.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13089 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-10 15:06:53 +00:00
Jonathan Protzenko
76f3646b12
Add a new bin_annot tag to OCamlbuild.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13088 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-10 15:02:56 +00:00
Damien Doligez
2f2f6b7a07
add missing copyright headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13033 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 21:03:40 +00:00
Damien Doligez
ca58e9f276
remove non-ascii chars
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13032 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 21:03:19 +00:00
Damien Doligez
d2b0f14516
remove non-ascii chars
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13031 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 21:02:29 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Xavier Clerc
4dd1e7fe41
PR#5102: ocamlbuild fails when using an unbound variable in rule dependency
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13002 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-10 13:59:47 +00:00