summaryrefslogtreecommitdiff
path: root/driver
Commit message (Collapse)AuthorAgeFilesLines
* add -dinterval to ocamlnatFlorian Angeletti2019-09-302-3/+4
|
* add support for no_float_const_prop to ocamlnatFlorian Angeletti2019-09-302-3/+4
|
* Add -linscan to ocamlnatFlorian Angeletti2019-09-302-3/+4
| | | | | in order to reduce the difference between the native compiler and toplevel.
* share argument implementation across executableFlorian Angeletti2019-09-304-354/+342
| | | | | | | | | | | | This commit defines five default argument modules in Main_args.default. Those modules provide a default implementation for the argument of ocaml, ocamlnat, ocamlc, ocamlopt, ocamldoc, ocamlcp, ocamloptp, and expect_test. Grouping together those implementations allow to share as much as possible similar implementation across executables. It should make easier to keep synchronized the various implementation, or reuse those implementation in alternative drivers.
* Cleanup ocamldoc pre-argumentsFlorian Angeletti2019-09-302-17/+31
| | | | | This commit removes all pre-arguments that were defined in Odoc_args but never turned into actual arguments.
* Merge dump_live and print_liveFlorian Angeletti2019-09-301-1/+1
|
* Add a new -output-complete-exe option (#8872)Nicolás Ojeda Bär2019-09-253-1/+12
| | | This option allows to build self-contained bytecode executable and is aimed to replace `-custom`. The main difference between the two is that executables produced by `-output-compete-exe` can be stripped.
* Add function-sections to OCAMLPARAMGreta Yorsh2019-07-151-0/+2
|
* Add compile-time option -function-sectionsGreta Yorsh2019-07-153-0/+19
|
* Remove unused file driver/ocamlcomp.sh.inSébastien Hinderer2019-07-101-20/+0
| | | | | No file seems to reference it. In particular, it is never turned into a genuine shell script.
* Improve shell scripts (#1690)zapashcanon2019-06-191-2/+2
|
* Merge pull request #2309 from TheLortex/runtime-variant-pathGabriel Scherer2019-06-195-0/+23
|\ | | | | Add -noruntime option
| * without-runtime: cosmetic tweaksLucas Pluvinage2019-06-111-1/+1
| |
| * Introduce the -without-runtime option.Lucas Pluvinage2019-05-065-0/+23
| |
* | Fixing misspellingsJPR2019-05-211-1/+1
| |
* | Move some code from Asmgen to the middle end directory etc. (#2288)Mark Shinwell2019-05-101-12/+21
|/ | | Followup to (#2281)
* Fix #8635Jeremie Dimino2019-04-231-13/+27
|
* Fix check-typo errorsNicolás Ojeda Bär2019-04-101-3/+8
|
* ocamldep: .ml in earlier include dirs should shadow .mli in later include dirsNicolás Ojeda Bär2019-04-091-42/+35
|
* Move some middle-end files around (#2281)Mark Shinwell2019-04-012-4/+5
| | | | | | * Various file moves in the middle end: this is the first stage of improving separation between the middle end and backend. * Creation of file_formats/ directory (with associated file moves) to hold the definitions of compilation artifact formats. * Creation of lambda/ directory (with associated file moves) to hold Lambda language definition files, transformation passes and construction passes from Typedtree. * Disable (hopefully temporarily) dynlink, debugger and ocamldoc for the dune build.
* Update issue numbers in comments after Mantis -> Github migration. (#8505)Stephen Dolan2019-03-181-1/+1
|
* Remove gprof support (#2314)Mark Shinwell2019-03-163-7/+4
| | | | This commit removes support for gprof-based profiling (the -p option to ocamlopt). It follows a discussion on the core developers' list, which indicated that removing gprof support was a reasonable thing to do. The rationale is that there are better easy-to-use profilers out there now, such as perf for Linux and Instruments on macOS; and the gprof support has always been patchy across targets. We save a whole build of the runtime and simplify some other parts of the codebase by removing it.
* main_args: remove some redundancy in Ocamldoc_options.Thomas Refis2019-03-152-8/+0
|
* GPR#2082: New option -no-insn-schedMark Shinwell2019-03-134-1/+23
|
* Remove support for compiler plugins (#2276)Mark Shinwell2019-03-1315-153/+14
| | | | | | | | | | | | | | After consultation on the core developers' list I am proposing this patch to remove support for compiler plugins. The main motivations for removing compiler plugins are: - They are a potential security risk. - They increase the complexity of the build system and make maintenance of the Dynlink libraries more difficult (although actually, this complexity could probably be reduced after #2268 is merged). - Many applications of plugins should be able to be expressed by building custom compiler drivers that link against compilerlibs. * Remove compiler plugins and hooks * Add new function Dynlink.unsafe_get_global_symbol but keep it outside the documented API. * Remove otherlibs/dynlink/nodynlink.ml * Update Changes
* Restore -vmthreads flag as an error (#2312)David Allsopp2019-03-133-0/+18
| | | | | | | | | This GPR restores -vmthread with an adapted version of the deprecation message as an error message and also keeps the use_vmthreads part of ppx contexts. * Partially revert #2289 * Convert -vmthread to an error * Neuter use_vmthreads in ppx context * Remove Clflags.use_vmthreads
* Delete the vmthreads library (#2289)Jérémie Dimino2019-03-118-34/+11
| | | | | | | | | | | | | | * Delete the deprecated vmthreads library It was deprecated in 4.08. * Remove the byte/native argument of init_path It is no longer necessary. * Error out when passing --{enable,disable}-vmthreads to ./configure Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
* MPR#7918: fix 4.08+dev regression, object files would remain after build errorGabriel Scherer2019-02-261-11/+13
|
* Merge pull request #1941 from sliquister/ocamlcp-dedup3Florian Angeletti2019-02-042-0/+53
|\ | | | | reduce boilerplate in compiler command line parsing
| * simplify the ocamlc{,opt}p code forwarding options to ocaml{c,opt}Valentin Gatien-Baron2019-01-222-0/+53
| |
* | Refactor load path management and initial environmentJeremie Dimino2019-01-302-3/+2
|/ | | | | | | | | - Add a Load_path module which caches files lookup - Instead of falling back to the external environment, allow to declare in the environment that a module comes from the external world. This allows persistent structures to shadows non-persistent ones
* Compile_common: turn `init` into continuation-passing `with_info`Gabriel Scherer2019-01-055-21/+25
| | | | | | I think this clarifies the fact that the `info` value is a resource that has a limited lifetime. The new API lets us create (and close) the ppf_dump directly from `Compile_common.with_info`, simplifying the API for user.
* Compile_common.init: make ppf_dump a labelled argumentGabriel Scherer2019-01-044-7/+7
|
* driver/compile_common: refactor interface/implementation entry pointsGabriel Scherer2019-01-044-37/+38
|
* driver/compile_common: store 'native' as part of the 'info' structureGabriel Scherer2019-01-042-1/+3
|
* driver/compile_common: whitespace refactoringGabriel Scherer2019-01-042-2/+11
|
* driver/compile_common: rename init_path -> nativeGabriel Scherer2019-01-042-7/+9
| | | | | | The previous label name made little sense to me, and in fact I thought it meant that the boolean indicates whether the path should be initialized or not.
* driver: consistently use _ as word separatorGabriel Scherer2019-01-0412-63/+63
|
* ocamldep: print each dependency on its own line, to minimize diffsGabriel Scherer2018-12-121-1/+6
|
* makedepend: no-op refactoring of dependency printingGabriel Scherer2018-12-121-11/+21
|
* compify_dynlink: bash=>sh (#2158)Thomas Refis2018-11-211-3/+2
|
* fix dune build following natdynlink modifications (#2154)Thomas Refis2018-11-202-4/+57
| | | | | - silence some principality warning in otherlibs/dynlink - shared some script between the makefile and the dune files
* Merge pull request #1063 from mshinwell/natdynlink_load_onceNicolás Ojeda Bär2018-11-152-58/+2
|\ | | | | Make (nat)dynlink sound (also fixes MPR#4208, MPR#4229, MPR#4839, MPR#6462, MPR#6957, MPR#6950)
| * Make (nat)dynlink soundMark Shinwell2018-11-122-58/+2
| |
* | "Alerts" as a generalization of "deprecated" (#1804)Alain Frisch2018-11-156-2/+24
|/
* Add option -error-style and environment variable OCAML_ERROR_STYLEArmaël Guéneau2018-10-207-25/+57
|
* Add source highlighting for errors & warnings in batch modeArmaël Guéneau2018-10-191-0/+1
|
* Provide a way to build the bytecode compiler using Dune (#2093)Thomas Refis2018-10-101-0/+6
|
* Deprecate `ocamlc -vmthread` (#2038)Jérémie Dimino2018-09-132-2/+10
|
* manual: compiler-libs.mld -> compiler_libs.mldFlorian Angeletti2018-09-121-1/+1
|