Demi Obenour
d89af40f64
Install native versions of tools by default.
...
Previously, `ocamlc`, `ocamlopt`, `ocamllex`, and `ocamldep` defaulted
to the bytecode versions of the tools. However, there is normally no
advantage to the bytecode versions if the native-code versions are
available, except in unusual circumstances. Instead, install the
native-code versions without the `.opt` suffix. They are still
installed with the `.opt` suffix for backwards compatibility. Finally,
install the bytecode versions with the `.byte` suffix, and build
native-code versions of tools that are not currently built in native
code.
Also, remove some duplication in tools/Makefile.shared.
Supersedes GPR #512 .
2016-06-06 14:44:10 -04:00
François Bobot
2aec849922
Merge remote-tracking branch 'origin/4.03' into trunk
...
travis.yml is kept from trunk
Conflicts:
.depend
Changes
Makefile
VERSION
boot/ocamlc
boot/ocamldep
boot/ocamllex
parsing/parser.mly
parsing/pprintast.ml
stdlib/hashtbl.ml
testsuite/tests/unwind/Makefile
tools/check-typo
2016-03-11 18:44:32 +01:00
alainfrisch
de857d6fb9
GPR#324: Make boot/ocamlc read directly byterun/primitives (patch by Francois Bobot).
2016-03-10 10:46:19 +01:00
Alain Frisch
8eb9c0b46e
An quick way to ensure that ocamlopt compiles fine on supported archs.
...
Examples: `make check_arch=power`, `make check_all_arches`.
2016-03-09 18:54:15 +01:00
Jacques-Henri Jourdan
dd74659c68
* Fix coreboot target. This target calls promote, which itself now
...
uses tools/stripdebug. This executable has to be ran with the new
runtime, not the one in boot/.
* Update .depend for byterun/ and asmrun/
2016-03-07 23:24:52 +01:00
Adrien Nader
78bdfa53ca
Makefile: use "$(EXT_DLL)" instead of hard-cording ".so".
2016-03-05 14:25:11 +01:00
Damien Doligez
69a906872f
tweak tools/check-typo and break more overlong lines
2016-02-19 17:13:53 +01:00
Damien Doligez
d5f61a4e54
tweak tools/check-typo and break more overlong lines
2016-02-19 12:28:36 +01:00
Damien Doligez
5401ce8473
Update headers for the new license.
...
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez
ee8f71101b
clean up whitespace and cut long lines
2016-02-17 13:36:27 +01:00
alainfrisch
6661919762
Move more stuff into Makefile.shared in order to fix the build on Windows.
2016-02-11 10:34:36 +01:00
Mark Shinwell
4f3b8bf872
Fix ocamlobjinfo for Flambda (includes work from Runhang Li)
2016-02-10 15:56:13 +01:00
Gabriel Scherer
f8f2a6277f
remove ocamlbuild from the compiler distribution
2016-02-01 15:05:18 -05:00
Pierre Chambart
050c454765
Add middle_end to Makefiles
2016-01-22 01:24:02 +01:00
Pierre Chambart
828cb4ebb9
Add field in Config for flambda and change the cmx and cmxa magic number
2016-01-14 14:20:23 +01:00
Leo White
3ef4b2c95e
Install compiler libs .cmx files
2015-12-26 08:29:48 +00:00
Thomas Refis
d004615e38
Makefile: add a 'natruntop' target, similar to 'runtop'
2015-12-18 10:39:36 +00:00
Jeremie Dimino
d0e62811c0
make ocamlnat build again
...
Conflicts:
Changes
Makefile.shared
2015-12-18 10:39:36 +00:00
Xavier Leroy
5b62da1835
Merge pull request #340 from ocaml/stripped-bootstrap
...
Reduce size of bootstrap compilers by stripping debug info
2015-12-18 11:13:37 +01:00
Gabriel Scherer
2e8de3ff85
Makefile: a 'runtop' target to build and run the toplevel
...
Pass the content of the TOPFLAGS variable as additional arguments, eg.
TOPFLAGS="-dparsetree" make runtop
2015-12-11 13:36:28 +01:00
Xavier Leroy
2810763764
Strip debugging information off the bootstrap compilers, to reduce their size
...
The stripping is done during bootstrap, when copying the new ocamlc, ocamllex and ocamldep to boot/. The new "stripdebug" tool performs this task.
As a consequence, comparing the new compilers with the boot/ compilers at the end of bootstrap is more complicated, since the debug section must be ignored. A new tool, "cmpbyt" in tools/, performs this comparison.
2015-12-09 10:45:31 +01:00
Alain Frisch
90323d0d1e
Starting to share identical parts in the root Makefile and Makefile.nt.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16534 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 13:49:59 +00:00
Mark Shinwell
e27e699fca
GPR#173: Attributes to control inlining
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16530 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 08:18:08 +00:00
Jérémie Dimino
f78f46bcce
Add parsing/Attr_helper
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16451 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-06 10:58:17 +00:00
Damien Doligez
b860d63145
whitespace cleanup, cut long lines, add some missing headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16415 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-11 11:58:31 +00:00
Xavier Leroy
4ee74721a6
Update wrt trunk (r16374).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/cc-optim@16375 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-25 13:40:40 +00:00
Gabriel Scherer
cb3bb152ab
add option handling for colors in compiler, OCAMLPARAM and ocamlbuild
...
(Simon Cruanes and Gabriel Scherer)
Use one of
-color auto
-color always
-color never
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16348 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-15 15:57:51 +00:00
Xavier Leroy
59853fa694
Remove -Werror from the C compiler flags used by ocamlc/ocamlopt when compiling a C source file.
...
The risk of breakage of 3rd-party libraries is too high.
There might be cleaner ways to achieve this effect, e.g. split BYTECCCOMPOPTS into BYTECCCOMPOPTS and BYTECCEXTRAWARNINGS.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/cc-optim@16337 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-06 08:17:31 +00:00
Damien Doligez
860c670848
merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev 16205)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 14:31:05 +00:00
Leo White
5c55e4cc08
Attach documentation comments to Parsetree
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16189 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-28 13:11:50 +00:00
Gabriel Scherer
06a78807fb
Update Makefile and .depend for untypeast.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15887 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-03-08 10:22:34 +00:00
Damien Doligez
0f5046b8b4
configure: add test for cygwin64
...
Makefile: fix compilation of checkstack
tests/callback: fix compilation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15809 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-02-05 04:28:25 +00:00
Gabriel Scherer
95f626c9ff
PR#6691: install .cmt[i] files for stdlib and compiler-libs
...
(patch by David Sheets)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15794 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-01-24 16:35:29 +00:00
Gabriel Scherer
7ca29ef3f7
PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header name clashes
...
(Jérôme Vouillon and Adrien Nader and Peter Zotov)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-27 14:41:49 +00:00
Alain Frisch
9d450a05e0
Replace TypedtreeMap with a more standard open-recursion iterator Tast_mapper. Keep TypedtreeMap/Iter for now, for external projects.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15739 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-22 09:36:41 +00:00
Alain Frisch
8037548026
Import the abstract_intel_emit branch (merge emit.mlp and emit_nt.mlp by going through an AST of the assembly language).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15619 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-01 10:44:02 +00:00
Alain Frisch
9decba7731
Rename Intel_* to X86_*.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15612 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-27 17:12:21 +00:00
Alain Frisch
8c075ad80a
Sync with trunk.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15610 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-27 16:43:24 +00:00
Luc Maranget
4fdd5dd354
Oups.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15571 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-07 15:29:48 +00:00
Luc Maranget
3bded3f977
Solve PR#6646, ie avoid introducing huge jump summaries
...
and unshared default clauses in the presence of many (>= 32) non-matched
constructors.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15570 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-07 14:13:53 +00:00
Damien Doligez
031cffd155
merge branch 4.02 from release 4.02.0 to release 4.02.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15558 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-15 13:34:58 +00:00
Gabriel Scherer
ccfa5d7fb1
minor: correct error locations in emit.mlp
...
From: Pierre Chambart <pierre.chambart@ocamlpro.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15496 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-08 06:59:27 +00:00
Alain Frisch
fc4e2cd892
Cleanup.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15330 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-09-24 16:03:17 +00:00
Alain Frisch
060be502d3
Towards more explicit types.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15232 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-09-16 16:27:24 +00:00
Alain Frisch
25178442c2
Only include Intel_* modules when arch is i386 or amd64.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15180 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-09-02 15:07:59 +00:00
Alain Frisch
45f4535e99
Move the DSL part from intel_gas to its own module.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15160 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-29 14:40:25 +00:00
Fabrice Le Fessant
c6d4264a09
import new intel emit branch
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/abstract_intel_emit@15097 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-18 09:32:20 +00:00
Gabriel Scherer
43f47d2f5d
PR#6509: Add -linkall flag to ocamlcommon archives (Patch by Frédéric Bour)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-06 11:58:03 +00:00
Gabriel Scherer
c24c9ac53d
Makefile factorization
...
reducing world's sequentialization consistently improves parallel build times
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14971 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-06-09 13:53:43 +00:00
Mark Shinwell
dc8727466e
stop doing chmod -w on utils/config.ml (PR 6319)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14967 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-06-06 12:01:16 +00:00