Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve compatibility of Configurator.V1.write_flags #967

Merged
2 commits merged into from Jul 8, 2018
Merged

Improve compatibility of Configurator.V1.write_flags #967

2 commits merged into from Jul 8, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jul 8, 2018

I haven't checked in detail but I'm pretty sure the following is true:

  • take an arbitrary string s
  • print Quoted_string s in dune syntax
  • parse it either in dune or jbuilder syntax
  • we obtain Quoited_string s' where s = s'

This is not true if we use Atom (A s) instead of Quoted_string s. With this in mind, this PR change the files produced by Configurator.V1.write_flags to make sure they produce only quoted strings.

Make sure the produced file will round-trip with both the Dune and
Jbuilder lexical conventions.

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
@ghost ghost requested a review from rgrinberg July 8, 2018 09:55
@ghost ghost merged commit e7bc884 into ocaml:master Jul 8, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants