-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stdlib): pass flags when building stdlib.ml (#7241)
Reported by @gretay-js. This ensures that when building `stdlib.ml` (the main module of a library with `(stdlib)`), flags set in the corresponding stanza `(library)` are correctly passed. Signed-off-by: Etienne Millon <me@emillon.org>
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$ cat > dune-project << EOF | ||
> (lang dune 3.7) | ||
> (using experimental_building_ocaml_compiler_with_dune 0.1) | ||
> EOF | ||
|
||
$ cat > dune << EOF | ||
> (library | ||
> (name mystdlib) | ||
> (stdlib) | ||
> (flags :standard -w -8)) | ||
> EOF | ||
|
||
$ cat > mystdlib.ml << EOF | ||
> (* This triggers warning 8 *) | ||
> let None = None | ||
> EOF | ||
|
||
$ dune build |