-
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 copy_files handling when generating .merlin files
Merlin generation would be broken in the presence of copy_files and any other stanza with a preprocessing directive. This is because copy_files would have No_preprocessing, and that would only successfully merge with non preprocessing stanzas. To fix the problem, we no longer rely on merging mechanism to add additional directories for copy_files, the more_src_dirs argument aready exists for that. Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
- Loading branch information
Showing
3 changed files
with
22 additions
and
11 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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
copy_files would break the generation of the preprocessing flags | ||
$ dune build copy_files/.merlin | ||
File "copy_files/dune", line 5, characters 21-63: | ||
5 | (preprocess (action (run %{project_root}/pp.exe %{input-file})))) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Warning: .merlin generated is inaccurate. Cannot mix preprocessed and non preprocessed specificiations. | ||
Split the stanzas into different directories or silence this warning by adding (allow_approximate_merlin) to your dune-project. | ||
$ cat copy_files/.merlin | grep "FLG -pp" | ||
[1] | ||
FLG -pp '$TESTCASE_ROOT/_build/default/pp.exe' |