Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify and slightly modify the use of C compiler related make variab…
…les. Before this commit, there was no distinction between the options used to compile C source files coming with the OCaml distribution and third-party C source files compiled by calling ocamlc or ocamlopt. This commit makes it possible to use options when compiling C source files that come with OCaml without imposing these options to the compilation of third-party code. More specifically, the options in the BYTECCCOMPOPTS and NATIVECCCOMPOPTS variables are not passed to the C compiler when called by ocamlc and ocamlopt any longer. This commit also documents the role of each concerned variable. In addition: - On Unix: * The -Wall and -Werror options are no longer passed to the C compiler by ocamlc and ocamlopt for third-party C source files - For the MinGW port: * The -O option has been removed from the SHAREDCCCOMPOPTS variable * The -Wall and -Wno-unused options are no longer passed to the C compiler by ocamlc and ocamlopt for third-party C source files - For the msvc port: the * The -Ox option has been removed from the SHAREDCCCOMPOPTS variable. * The -Wall and -Wno-unused options are no longer passed to the C compiler by ocamlc and ocamlopt for third-party C source files
- Loading branch information
Showing
8 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters