-
Notifications
You must be signed in to change notification settings - Fork 81
/
Changes
4208 lines (3057 loc) · 105 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
We use "MPR#$N" to denote the ticket number $N on the Mantis bugtracker:
http://caml.inria.fr/mantis/view.php?id=$N
and OGPR#$N to denote the github pull issue against the OCaml repository
https://github.com/ocaml/ocaml/pull/$N
The form #$N indicates an issue on the github ocamlbuild repository,
https://github.com/ocaml/ocamlbuild/issues/$N
https://github.com/ocaml/ocamlbuild/pulls/$N
We also use PR#$N for pull requests.
Changes breaking compatibility are marked with a "* " bullet instead
of the usual "- ".
NEXT_RELEASE:
-------------
- Set default values of `Options.ext_*` and `Options.exe` from the output of
`Options.ocamlc "-config"` (Useful when `Options.ocamlc` is a cross compiler)
(#353 by Pierre Boutillier, reviewed by Kate Deplaix and Hugo Heuzard,
requested by whitequark in #181)
0.15.0 (29 Jun 2024):
----------------------
OCamlbuild 0.15.0 comes with first class support for native Windows ports of OCaml
(MinGW64-w64 and MSVC). This support was historically provided by
[opam-repository-mingw](https://fdopen.github.io/opam-repository-mingw/).
- Misc: restore CI (unix, macos, windows)
(#328, #329, #336, #349 by Hugo Heuzard)
* Remove degraded mode for windows
(#333 by Hugo Heuzard)
- Remove light mode (#332 by Hugo Heuzard)
- Make the codebase work on windows native
(#329, #333, #334, #338, #339, #342, #343, #344 by Hugo Heuzard)
* No longer treat empty path in PATH env variable as the current working directory
(#339 by Hugo Heuzard)
- Emit a warning if several calls are made to
`Ocamlbuild_plugin.dispatch` -- all calls before the last one are
ignored, which may not be what users expect.
(#30 by Gabriel Scherer, review by whitequark)
- Rename user-rebindable {LINK,COMP}FLAGS into OCB_{LINK,COMP}FLAGS
(#303 by Gabriel Scherer)
0.14.3 (20 Dec 2023):
---------------------
- Add OCaml 5.2 support
(#325 by Hugo Heuzard)
- Quote Makefile arguments to allow spaces in paths, especially on Windows.
Documented in #321 (#324 by Jonah Beckford)
0.14.2 (28 Sep 2022):
---------------------
- Add OCaml 5.1 support
(#319 by Kate Deplaix, reviewed by Gabriel Scherer)
0.14.1 (09 Feb 2021):
---------------------
- Add OCaml 5.00 support
(#315 by Kate Deplaix, reviewed by Gabriel Scherer)
- Fix race conditions when invoking ocamlbuild in parallel from a makefile
(#302 by Gabriel Scherer)
- Removes .so from products of all cmxs rules
(#305 by Ivan Gotovchits, reviewed by Gabriel Scherer)
0.14.0 (23 Feb 2019):
---------------------
Compared to the previous released version (0.12.0), OCamlbuild 0.14.0
contains new features (`ppopt(..)` and `ppxopt(...)` flags, ocamlbuild
options) and support for OCaml 4.08+dev.
* Revert the change to "pack" handling from the never-released 0.13
(#272), which turns out to break compatibility with too many
projects. At this point in the lifetime of ocamlbuild usage, it's
more important to keep building existing projects than to improve
the build system for new projects -- of course the latter is also
nice, but not when it endangers compatibility. (Gabriel Scherer)
0.13.1 (15 Sep 2018):
---------------------
This bugfix release attempts to fix a regression due to the change in
"pack" handling in 0.13.0. It is not clear whether the regression
should be considered a bug in 0.13.0 or an incorrect _tags file in the
broken package, but we prefer to fix it anyway.
- #287: change "linkpkg" flag definition to not apply in the
new "pack"++"link" mode introduced by #272. This avoids
a build failure in webidl.1.4 and possibly other packages
using "true: linkpkg".
(Gabriel Scherer, report by Andreas Hauptmann)
0.13.0 (8 Sep 2018):
--------------------
OCamlbuild 0.13.0 contains new features (`ppopt(..)` and `ppxopt(...)` flags,
ocamlbuild options) and bugfixes (to pack production, for 4.08+dev support).
- #45, #190: add ppopt(arg) and ppxopt(package,arg) when -use-ocamlfind
(Gabriel Scherer, review by whitequark,
request by Gabriel Scherer, Gabriel Radanne and Pavel Argentov)
- #268, #269: add flag support for some ocamlmklib options:
custom, debug, failsafe, linkall, ccopt(..), cclib(..), rpath(..), ldopt(..)
(Gabriel Scherer, report by Hannes Mehnert, review by whitequark)
* #272: add the "link" tag to "pack" actions
Instead of a separate category, "pack" is now another form of linking
like "program", "library", "toplevel" and "output_obj". This fixes
the issue that package(...) tags where not passed at pack-production
time, spotted by Jérémie Dimino. More generally, this extends
the meaning of all "link" flags to "pack", which seems to be the correct
behavior for all the rules we inspected.
(Gabriel Scherer, original issue diagnosis by Jérémie Dimino)
- #278: typo fixes in the manual
(Xinzhe Yang)
- #282: fix compilation with trunk OCaml (4.08+dev)
(Xavier Clerc and Nandor Licker)
0.12.0 (11 Nov 2017):
---------------------
OCamlbuild 0.12.0 is a maintenance release containing mostly bugfixes
and a few user-contributed features.
- #227: install signatures.{mli,cmi,cmti} to help documentation tools
(Daniel Bünzli and Gabriel Scherer)
- #232: fix Windows install rules
(David Allsopp)
- #234: add "afl_instrument" and "afl_inst_ratio" flags for corresponding
ocamlopt options.
(Jeremy Yallop)
- #237: extend cc/ccopt/cclib flags to apply to "ocaml" compilation as well,
as tweaking the C linker can be required for pure-OCaml projects -- see #236
(Gabriel Scherer, report by Nathan Rebours)
- #253: only run native tests if ocamlopt is available.
(Ximin Luo, review by whitequark and Gabriel Scherer)
- #256, #258: pass -keep-docs and -keep-locs when using -pack
(Gabriel Scherer, report by Vincent Jacques)
- #257, #259: add `_opam` to the list of directories ignored by default;
it is used for package-local opam switches
(Gabriel Scherer, request by Edwin Török)
0.11.0 (5 Mar 2017):
--------------------
OCamlbuild 0.11.0 introduces a change to the way `.cmxs` files are
produced when no `.mldylib` file is absent: it will now use the exact
same semantics as `.cmxa` and `.mllib` file -- in particular, it
should not be necessary anymore to have identical
`foo.{mllib,mldylib}` files, only `foo.mllib` should suffice. See the
detailed changelog below for details.
- #111: added "nostdlib" flag for corresponding ocaml{c,opt} options
(Thomas Wood)
- #115: add `node_modules` to the list of directories ignored by default
(.svn/, CVS/, .bzr/, .hg/, .git/, _darcs/, node_modules/)
(Yunxing Dai)
- #125, #160: added "-toolchain" option for corresponding ocamlfind option.
(whitequark)
- #127, #137, #138: install ocamlbuild's man pages, missing since 4.02
(Adam Sampson and Gabriel Scherer)
- #130: make sure that -just-plugin always stops after the plugin-build phase
(Gabriel Scherer, report by whitequark)
* #132, #159: remove the rule ".cmx -> .cmxs"
Previously, there was a ".cmx -> .cmxa" rule that would
pull a module and its dependencies in a .cmxa, and a separate
".cmx -> .cmxs" rule that would pull only a module as a .cmxs.
The latter is a reasonable default choice, the idea being that
a module's dependencies may often be statically linked with the
program instead of being dynamically linked. But it conflicts with
the presence of a rule ".cmxa -> .cmxs" as soon as the library has
the same name as one of the modules it contains.
The reason why the rule ".cmxa -> .cmxs" matter is that it can be
composed with the rule ".mllib -> .cmxa" to build .cmxs files from
.mllib files, without having to copy each .mllib file into
a separate .mldylib file.
In other terms, the previous behaviour would, by default (in absence
of .mldylib file who always takes priority), only link the module in
the .cmxs file, and people wishing otherwise would have to write
a list of modules in a .mldylib file. The new behavior will, by
default, take the .mllib file or the module dependencies (as for
.cmxa) to build a .cmxs file, and people wishing otherwise will have
to write just the module name in a .mldylib file.
It is unclear whether this change will break some projects on which
users relied on the previous semantics. It seems equally likely that
the previous semantics, when it applied, was a source of bugs
(the .cmxs files didn't have the expected modules) that would not be
discovered by people not testing dynamic linking. Such bugs have
been found and fixed in the following cases:
- <https://github.com/dbuenzli/uucp/pull/9>
- <https://github.com/dbuenzli/uunf/pull/4>
- <https://github.com/dbuenzli/uuseg/pull/4>
(Daniel Bünzli, Jérémie Dimino, Armaël Guéneau, Gabriel Scherer, whitequark)
- #124, #136: do not explicitly pass -shared when building shared libraries;
let the compiler decide what to build.
(whitequark)
- #143-171: migration of Mantis bugtracker issues to the github issue tracker
(Damien Doligez)
- #172-175, #177: setting up Continuous Infrastructure (CI) testsuite checks
(whitequark)
- #202: install license, changes and readme in opam's docdir for `odig`
(Gabriel Scherer, request and review by Daniel Bünzli)
* #240: new heuristic for handling the OCAMLLIB environment variable.
`ocamlbuild -where` will ignore OCAMLLIB completely if OCAMLBUILD_LIBDIR is
not a lexical subdirectory of OCAML_LIBDIR (i.e. an opam installation).
Otherwise, it now returns $OCAMLLIB with the difference between
OCAMLBUILD_LIBDIR and OCAML_LIBDIR appended (i.e. for a normal findlib
installation, it now returns $OCAMLLIB/site-lib/ocamlbuild)
(David Allsopp, review by Gabriel Schere)
- "noautolink" tag for ocaml{c,opt}
(Gabriel Scherer)
0.10.{0,1} (Dec 2016):
----------------------
These releases were never widely distributed, because of
a quickly-caught regression due to the change of .cmxs compilation
behavior (#132), fixed with the help Daniel Bünzli, Jérémie Dimino
and, in particular, whitequark.
0.9.3 (6 Oct 2016):
-------------------
OCamlbuild 0.9.3 introduces several features contributed or requested
by our users. See the detailed changelog below.
- #39: new ".o -> .clib" rule to build libraries out of single C stubs
(Gabriel Scherer, request by whitequark)
- #78: Integrate the in-progress OCamlbuild manual, previously located at
https://github.com/gasche/manual-ocamlbuild
into the ocamlbuild repository, in the manual/ subdirectory.
The most current version of the manual can thus be accessed at
https://github.com/ocaml/ocamlbuild/tree/master/manual/manual.adoc
(Gabriel Scherer)
- #93: added "noassert" and "unsafe" flag for corresponding ocaml{c,opt} options
(François Pottier)
- #94: added "cc", "cclib", and "ccopt" flags which correspond to the
respective ocaml{c,opt} options
(Rudi Grinberg)
- PR#7295: add infer_interface support for various type-checking-time flags:
color, keep_docs, no_alias_deps, nolabels, nopervasives, open,
strict_formats, strict_sequence, warn, warn_error
(Gabriel Scherer, report by Knuth Posern)
0.9.2 (1 May 2016):
-------------------
OCamlbuild 0.9.2 is a release to support OCaml 4.03. Martin Neuhäußer
contributed new flags for flambda-specific optimization options. We
also extend the scope of the flags -opaque and -for-pack, to align
with 4.03 best practices. Note that OCamlbuild should still work
correctly under older OCaml releases.
- #67: Add support for flambda's optimization parameters
The flags are named according to the flambda options with two exceptions:
optimization_rounds(int) for -rounds <int>
optimize({2,3,classic}) for -O{2,3,classic}
(Martin Neuhäußer)
- #70 (partial): fix hygiene complains about the build directory under
Windows
(Andreas Hauptmann, Gabriel Scherer)
- #73: also pass predicates(foo) to ocamldep
(Jérémie Dimino)
- extend the scope of the -opaque flag under 4.03
(Gabriel Scherer)
- extend the scope of the -for-pack flag to ocamlc,
as recommend by OCaml compiler maintainers in
[PR#5996](http://caml.inria.fr/mantis/view.php?id=5995#c13339)
(Gabriel Scherer)
0.9.1 (29 Feb 2016):
--------------------
OCamlbuild 0.9.1 synchronizes the behavior of ocamlbuild with
changes in the OCaml compiler that are present in the 4.03 release
branch; this version that should be usable for testing packages using
4.03 before its release.
- Do not exclude files whose name starts with '_' from the source tree
(Gabriel Scherer, report by Daniel Bünzli on the caml-list)
- #44: When ocamlbuild discovers a cycle in the dependencies, the
displayed problematic path is now refined to the actual cycle
(François Bobot, review by Armaël Géneau)
- #51: synchronize handling of -o flag for C files with upstream OCaml
(whitequark)
OCamlbuild 0.9.0 (19 Jan 2016):
-------------------------------
OCamlbuild 0.9.0 is an experimental release designed to help testing
OCaml software in preparation for the 4.03 release -- the first one to
not include ocamlbuild.
- MPR#6794, MPR#6809: pass package-specific include flags when building C files
(Jérémie Dimino, request by whitequark)
- OGPR#208: add "asm" tag to ocamlbuild to enable flag -S
(ygrek)
- Changed OCamlbuild's license to LGPLv2 with static linking exception.
- OGPR#219: speedup target-already-built builds
(ygrek)
- MPR#6605, OGPR#117: un-hardcode camlp4 library path
(Vincent Laporte and Gabriel Scherer)
- #20: add -dot and -man-related ocamldoc options
(Gabriel Scherer)
- #10, PR#21: Fix manpages generation: properly pass the "manpage" tag.
(Armaël Guéneau)
- #20: add -documentation support for parametrized flag
(Gabriel Scherer, review by Rudi Grinberg and François Bobot)
- #10, #35: Use extension-independent tags for ocamldoc rules.
(Armaël Guéneau)
OCamlbuild was included in the OCaml compiler distribution between
OCaml 3.10.0 (May 2007) and OCaml 4.02.3 (July 2015). The changes
below correspond to the subset of ocamlbuild-related changes in those
OCaml releases.
-------------------------------------------------------------------------
OCaml 4.02.3 (27 Jul 2015):
---------------------------
OCaml 4.02.2 (17 Jun 2015):
---------------------------
OCamlbuild:
- MPR#6237: explicit "infer" tag to control or disable menhir --infer
(Hugo Heuzard)
- MPR#6625: pass -linkpkg to files built with -output-obj.
(whitequark)
- MPR#6702: explicit "linkpkg" and "dontlink(foo)" flags
(whitequark, Gabriel Scherer)
- MPR#6712: Ignore common VCS directories
(whitequark)
- MPR#6720: pass -g to C compilers when tag 'debug' is set
(whitequark, Gabriel Scherer)
- MPR#6733: add .byte.so and .native.so targets to pass
-output-obj -cclib -shared.
(whitequark)
- MPR#6733: "runtime_variant(X)" to pass -runtime-variant X option.
(whitequark)
- MPR#6774: new menhir-specific flags "only_tokens" and "external_tokens(Foo)"
(François Pottier)
Bug fixes:
- MPR#6626: ocamlbuild on cygwin cannot find ocamlfind
(Gergely Szilvasy)
- MPR#6640: ocamlbuild: wrong "unused tag" warning on "precious"
(report by user 'william')
- MPR#6652: ocamlbuild -clean does not print a newline after output
(Damien Doligez, report by Andi McClure)
- MPR#6793: ocamlbuild passes nonsensical "-ocamlc ..." commands to menhir
(Gabriel Scherer, report by Damien Doligez)
- MPR#6893: ocamlbuild: "tag not used" warning when using (p)dep
(Gabriel Scherer, report by Christiano Haesbaert)
OCaml 4.02.1 (14 Oct 2014):
---------------------------
Bug Fixes:
- MPR#6599: ocamlbuild: add -bin-annot when using -pack
(Christopher Zimmermann)
- ocamlbuild: add an -ocamlmklib option to change the ocamlmklib command
(Jérôme Vouillon)
OCaml 4.02.0 (29 Aug 2014):
---------------------------
Bug fixes:
- MPR#5406 ocamlbuild: "tag 'package' does not expect a parameter"
(Gabriel Scherer)
- MPR#6184: ocamlbuild: `ocamlfind ocamldep` does not support -predicate
(Jacques-Pascal Deplaix)
- MPR#6300: ocamlbuild -use-ocamlfind conflicts with -ocamlc
(Gabriel Scherer)
- MPR#6482: ocamlbuild fails when _tags file in unhygienic directory
(Gabriel Scherer)
- MPR#6502: ocamlbuild spurious warning on "use_menhir" tag
(Xavier Leroy)
Features wishes:
- MPR#5201: ocamlbuild: add --norc to the bash invocation to help performances
(Daniel Weil)
- MPR#6087: ocamlbuild, improve _tags parsing of escaped newlines
(Gabriel Scherer, request by Daniel Bünzli)
- MPR#6109: Typos in ocamlbuild error messages
(Gabriel Kerneis)
- MPR#6166: document -ocamldoc option of ocamlbuild
(Xavier Clerc)
- MPR#6187: ocamlbuild: warn when using -plugin-tag(s) without myocamlbuild.ml
(Jacques-Pascal Deplaix)
- MPR#6495: ocamlbuild tags 'safe_string', 'unsafe_string'
(Anil Madhavapeddy)
- make ocamldebug -I auto-detection work with ocamlbuild
(Josh Watzman)
OCaml 4.01.0 (12 Sep 2013):
---------------------------
Bug fixes:
- MPR#4469: emacs mode: caml-set-compile-command is annoying with ocamlbuild
(Daniel Bünzli)
- MPR#4502: ocamlbuild now reliably excludes the build-dir from hygiene check
(Gabriel Scherer, report by Romain Bardou)
- MPR#5102: ocamlbuild fails when using an unbound variable in rule dependency
(Xavier Clerc, report by Daniel Bünzli)
- MPR#5212: Improve ocamlbuild error messages of _tags parser
(ygrek)
- MPR#5300: ocamlbuild: verbose parameter should implicitly set classic display
(Xavier Clerc, report by Robert Jakob)
- MPR#5468: ocamlbuild should preserve order of parametric tags
(Wojciech Meyer, report by Dario Texeira)
- MPR#5763: ocamlbuild does not give correct flags when running menhir
(Gabriel Scherer, reported by Philippe Veber)
- MPR#5891: ocamlbuild: support rectypes tag for mlpack
(Khoo Yit Phang)
- MPR#6058: 'ocamlbuild -use-ocamlfind -tag thread -package threads t.cma' fails
(Gabriel Scherer, report by Hezekiah M. Carty)
- MPR#6109: Typos in ocamlbuild error messages
(Gabriel Kerneis)
Feature wishes:
- MPR#5243: improve the ocamlbuild API documentation in signatures.mli
(Christophe Troestler)
- MPR#6059: add -output-obj rules for ocamlbuild
(Anil Madhavapeddy)
- MPR#6060: ocamlbuild tags 'principal', 'strict_sequence' and 'short_paths'
(Anil Madhavapeddy)
- ocamlbuild tag 'no_alias_deps'
(Daniel Bünzli)
Tools:
- OCamlbuild now features a bin_annot tag to generate .cmt files.
(Jonathan Protzenko)
- OCamlbuild now features a strict_sequence tag to trigger the
strict-sequence option.
(Jonathan Protzenko)
- OCamlbuild now picks the non-core tools like ocamlfind and menhir from PATH
(Wojciech Meyer)
OCaml 4.00.1 (5 Oct 2012):
--------------------------
Bug fixes:
- MPR#5468: ocamlbuild should preserve order of parametric tags
OCaml 4.00.0 (26 Jul 2012):
---------------------------
Bug Fixes:
- MPR#5305: prevent ocamlbuild from complaining about links to _build/
- MPR#5356: ocamlbuild handling of 'predicates' for ocamlfind
- MPR#5435: ocamlbuild does not find .opt executables on Windows
- MPR#5503: error when ocamlbuild is passed an absolute path as build directory
- MPR#5531: Allow ocamlbuild to add ocamldoc flags through -docflag
- MPR#5604: fix permissions of files created by ocamlbuild itself
- MPR#5616: move ocamlbuild documentation to the reference manual
- MPR#5655: ocamlbuild doesn't pass cflags when building C stubs
OCaml 3.12.1 (4 Jul 2011):
--------------------------
Bug fixes:
- MPR#4380: ocamlbuild should not use tput on windows
- MPR#4552: ocamlbuild does not create symlinks when using '.itarget' file
- MPR#4967: ocamlbuild passes wrong switches to ocamldep through menhir
- MPR#5039: ocamlbuild should use '-linkpkg' only when linking programs
- MPR#5095: ocamlbuild ignores some tags when building bytecode objects
- MPR#5100: ocamlbuild always rebuilds a 'cmxs' file
- MPR#5103: build and install objinfo when building with ocamlbuild
- MPR#5165: ocamlbuild does not pass '-thread' option to ocamlfind
- MPR#5213: ocamlbuild should pass '-rectypes' to ocamldoc when needed
Feature wishes:
- MPR#5065: added '-ocamldoc' option to ocamlbuild
- MPR#5139: added possibility to add options to ocamlbuild
- ocamlbuild: allow dependency on file "_oasis"
Other changes:
- Changed default minor heap size from 32k to 256k words.
- Added new operation 'compare_ext' to custom blocks, called when
comparing a custom block value with an unboxed integer.
Objective Caml 3.12.0 (2 Aug 2010):
-----------------------------------
Ocamlbuild:
- Add support for native dynlink.
All tools:
- MPR#4857: add a -vnum option to display the version number and nothing else
Objective Caml 3.11.2 (20 Jan 2010):
------------------------------------
Bug fixes:
- MPR#4421: ocamlbuild uses wrong compiler for C files
- MPR#4710, MPR#4720: ocamlbuild does not use properly configuration information
- MPR#4856: ocamlbuild uses ocamlrun to execute a native plugin
- MPR#4873: ocamlbuild ignores "thread" tag when building a custom toplevel
- MPR#4890: ocamlbuild tries to use native plugin on bytecode-only arch
- MPR#4896: ocamlbuild should always pass -I to tools for external libraries
- MPR#4922: ocamlbuild recompiles too many files
- Various build problems with ocamlbuild under Windows with msvc
Feature wishes:
- MPR#4723: "clear_rules" function to empty the set of ocamlbuild rules
Objective Caml 3.11.1 (12 Jun 2009):
------------------------------------
- ocamlbuild: incorrectly using the compile-time value of $OCAMLLIB
Objective Caml 3.11.0 (03 Dec 2008):
------------------------------------
Objective Caml 3.10.2 (29 Feb 2008):
------------------------------------
Objective Caml 3.10.1 (11 Jan 2008):
------------------------------------
- MPR#4286 ocamlbuild: cannot compile under AIX and SunOS
- MPR#4304 ocamlbuild: handle -I correctly
- MPR#4313 ocamlbuild: -log and missing directories
- MPR#4327 ocamlbuild: make emacs look for .annot in _build directory
- MPR#4378 ocamlbuild: typo in plugin.ml
- MPR#4379 ocamlbuild: problem with plugins under Windows
- MPR#4387 ocamlbuild: build directory not used properly
- MPR#4410 ocamlbuild: problem with plugin and -build
Objective Caml 3.10.0 (18 May 2007):
------------------------------------
New tools:
- ocamlbuild: compilation manager for OCaml applications and libraries.
See draft documentation at http://gallium.inria.fr/~pouillar/
The content below corresponds to the old Changelog, before ocamlbuild was
included in the OCaml distribution. The version control history of those changes
is unfortunately lost, but the log below is kept for historical purposes.
(The use of a "* " bullet below does not indicate
a compatibility-breaking change, it was just the standard format for
this Changelog.)
-------------------------------------------------------------------------
2007-03-22 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Allow to receive the build function in {custom,file}_rule.
* rule.ml,
* rule.mli,
* signatures.mli: Ditto.
* ocaml_specific.ml: Update.
* command.ml,
* command.mli: Add a function to get string and tags.
* ocamldep.ml,
* ocamldep.mli: Make tag based dependencies.
* ocaml_compiler.ml: Do the pack as one command to be sure running the
remove.
* test/test8/myocamlbuild.ml,
* test/good-output: Update.
2007-03-21 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Fix the previous fix.
* ocaml_compiler.ml: Remove the empty file.
* test/good-output: Update.
2007-03-21 Nicolas Pouillard <nicolas.pouillard@gmail.com>
[native pack] use touch instead of mv and cmp.
* ocaml_compiler.ml: This version is will force ocamlopt to do the
right thing.
* test/good-output: Update.
2007-03-20 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Two bugs, two fixes.
* ocaml_tools.ml: Add pp flags to interface inference.
* ocaml_specific.ml: Add a rule for packing with a cmi that already
exists.
* test/good-output: Update.
* Makefile: Change the default location.
2007-03-13 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Fix a bug in expand_module.
* ocaml_utils.ml: Handle correctly pathnames instead of just basenames.
2007-03-13 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Use sys_file_exists instead of Sys.file_exists.
* my_unix.ml: Since Sys.file_exists don't treat well captial letters.
* my_std.ml: Fix a bug.
* pathname.ml: Here is a an exception to the previous rule so, put a
comment.
2007-03-11 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Fix the List.union order.
* my_std.ml: Fix and improve List.union.
* pathname.ml: Use it and fix merge_include_dirs.
* test/good-output: Update since the union order was wrong.
2007-03-11 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Re fix menhir and include dirs.
* ocaml_tools.ml: Specifiy ocamlc and -I with --ocamlc.
2007-03-11 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Fix a bug: Add include directories to menhir.
* ocaml_tools.ml: Ditto.
* my_std.ml,
* signatures.mli: Specification typo.
2007-03-07 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Handle specially archives files during an import.
* shell.ml: Ditto.
2007-03-07 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Use cp -p in copy_rule, and fix some typos in the manual.
* manual/manual.tex: Typos.
* rule.ml,
* rule.mli: Add cp_p and use it for copy_rule.
2007-03-05 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Relaxe executor on exception condition.
Patch from Berke.
* executor.ml: Ignore Not_found and exceptional conditions.
* TODO: Add an entry (needs to better understand POSIX).
2007-03-04 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Split where in bindir and libdir.
* ocamlbuild_where.mli: Ditto.
* ocaml_specific.ml: Update.
* options.ml: Use bindir.
* plugin.ml: Update.
* start.sh: Update.
2007-03-04 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Virtual solvers for ocaml tools.
* options.ml: Setup virtual command solver for commands like ocamlc,
ocamlopt... This allow to have full pathname but let also failback to
classic search path.
* ocaml_compiler.ml: Add a tag to differentiate dependencies at link
time.
* ocamlbuild-presentation.rslide: Add an item as suggested by a friend.
2007-03-02 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Same thing for the second link function.
* ocaml_compiler.ml: Ignore stdlib.
2007-03-02 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Move the stdlib hack.
* ocaml_compiler.ml: Should works better.
2007-03-02 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Little fix about library linking.
* ocaml_utils.ml: Avoid linking twice in some cases.
* ocaml_compiler.ml: Handle specially the OCaml stdlib.
2007-03-01 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Remove a rec.
* glob.ml: Parse is not rec.
2007-03-01 Nicolas Pouillard <nicolas.pouillard@gmail.com>
true: traverse and FAQ.
* main.ml: Move the inital config upper to be loaded before the others
and hygiene.
* FAQ: New.
2007-02-28 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Improve the glob dir handling.
* glob.ml: Extend the ast instead of parsing an extended string.
2007-02-28 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Ensure that the whole boolean expression is only valid in the directory.
* glob.ml: Ditto.
2007-02-28 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Put -g on link only for programs.
* ocaml_specific.ml: Ditto.
2007-02-26 Berke Durak <berke.durak@inria.fr>
Added disclaimer to default rules table.
* manual/manual.tex: .
2007-02-26 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Add the -documentation option.
* main.ml: Implement it.
* flags.ml,
* flags.mli: Add get_flags.
* man/ocamlbuild.1: Update.
* signatures.mli,
* options.ml: Add show_documention.
* rule.ml,
* rule.mli: Add pretty_print.
2007-02-26 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Add the -dont-catch-errors option.
* main.ml: Implement it.
* options.ml: Parse it.
* signatures.mli: Declare it.
* _tags: Use debug.
2007-02-26 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Deal with the camlp4 library name.
* ocaml_specific.ml: Introduce use_old_camlp4 for the old one.
2007-02-26 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Minor `ocaml_lib' improvments.
* signatures.mli: Declare and doc it.
* ocamlbuild_plugin.ml: Export it.
* ocaml_specific.ml,
* ocaml_specific.mli: Add some dirs to std libs.
Move the ocaml_lib implem to ...
* ocaml_utils.mli,
* ocaml_utils.ml: ... here. Improve it by adding the ~tag_name option.
* ocaml_compiler.ml: The hash now contains the tag.
* _tags: *.top use unix too.
2007-02-22 Berke Durak <berke.durak@inria.fr>
Should use Log.eprintf for show_tags.
* main.ml: .
2007-02-22 Nicolas Pouillard <nicolas.pouillard@gmail.com>
( & ), sanitize.sh, and the manual...
* signatures.mli: Add ( & ).
* hygiene.ml: Also clean the sanitize.sh script itself.
* my_std.ml: Add ( & ).
* manual/manual.tex: Some fixes and a section that I wrote but that's
needs reflexion about what solution we want to support.
2007-02-22 Berke Durak <berke.durak@inria.fr>
Implemented fixes suggested by Commissar Leroy.
* fda.ml: .
* hygiene.ml: .
* hygiene.mli: .
* man/ocamlbuild.1: .
* manual/manual.tex: .
* ocaml_specific.ml: .
* options.ml: .
* signatures.mli: .
2007-02-20 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Add -show-tags.
* hygiene.ml: Rewrap the error message.
* main.ml: Do the show_tags job. Move one hook.
* ocaml_specific.ml: Add -g also in native code.
* options.ml,
* signatures.mli: Add the -show-tags option.
* tags.ml: Fix print.
* TODO: Add a done entry.
2007-02-16 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Relaxing plural options to spaces.
* lexers.mli,
* lexers.mll: Add comma_or_blank_sep_strings.
* options.ml: Use it.
2007-02-16 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Add a plugin example.
* manual/myocamlbuild.ml: New.
2007-02-16 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Typos.
* ocamlbuild-presentation.rslide: .
* manual/trace.out: .
2007-02-16 Berke Durak <berke.durak@inria.fr>
Fixed a few typos and sentences.
* ocamlbuild-presentation.rslide: .
2007-02-15 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Little changes...
* ocamlbuild-presentation.rslide: .
2007-02-15 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Slides almost done...
* manual/trace.out: New. Of course you needed it.
* ocamlbuild-presentation.rslide: Ditto.
2007-02-15 Berke Durak <berke.durak@inria.fr>
Improving slides.
* ocamlbuild-presentation.rslide: .
2007-02-15 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Slides...
* ocamlbuild-presentation.rslide: .
2007-02-15 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Working on slides...
* ocamlbuild-presentation.rslide: .
2007-02-15 Nicolas Pouillard <nicolas.pouillard@gmail.com>
More slides...
* ocamlbuild-presentation.rslide: .
2007-02-12 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Keep include dirs uniq.
* ocaml_compiler.ml: Ditto.
2007-02-12 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Keep include dirs uniq.
* ocaml_compiler.ml: Ditto.
2007-02-12 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Add ocamlmktop support.
* ocamlbuild.mltop: New.
* main.ml: Handle .top as binaries.
* ocaml_compiler.ml,
* ocaml_specific.ml,
* ocaml_compiler.mli: Add mktop functions and rules.
* options.ml,
* signatures.mli: Add an ocamlmktop option.
2007-02-09 Berke Durak <berke.durak@inria.fr>
Was attempting to link with threads.cmxa in byte mode.
* ocaml_specific.ml: .
2007-02-09 Berke Durak <berke.durak@inria.fr>
Talking of sterilize.sh.
* manual/manual.tex: .
2007-02-09 Berke Durak <berke.durak@inria.fr>
Rewrote some parts, filled the abstract, moved rantings to the appendix.
* manual/manual.tex: .
* .vcs: .
2007-02-08 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Add manual/manual.hva.
* manual/manual.hva: New.
2007-02-08 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Changes done with Luc.
* manual/manual.tex: .
* manual/Makefile: .
2007-02-08 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Fix a bug found by Luc in hevea.
* ocaml_utils.ml,
* ocaml_utils.mli: Change keep_this_module into module_importance to
have a finer grain.
* ocaml_compiler.ml: Update to importance.
* ocamldep.ml,
* ocamldep.mli: We now try to also build stdlib modules but don't fail
if they don't exists.
* test/test5/stack.ml: New.
* test/test5/a.ml: A test case (from hevea).
* test/good-output: Update.
2007-02-08 Nicolas Pouillard <nicolas.pouillard@gmail.com>
Ocamldoc, extension:* tag ...
* ocaml_tools.mli,
* ocaml_tools.ml: The ocamldoc support now takes into account two modes
*d and -o.
* ocaml_specific.ml: Two more rules and many flags for some of the
standard behaviors.
* signatures.mli: Some comments.
* tools.ml: Add the extension:* tag.