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

Rework the sub system select #632

Merged
1 commit merged into from Mar 20, 2018
Merged

Rework the sub system select #632

1 commit merged into from Mar 20, 2018

Conversation

ghost
Copy link

@ghost ghost commented Mar 18, 2018

Split the select_backends between two functions:

  • one for backends that support extensions
  • one for backends that support replacement

it might be possible to support both at once, but for now this is enough and it's simpler.

@ghost ghost mentioned this pull request Mar 18, 2018
Split the select_backends between two functions:
- one for backends that support extensions
- one for backends that support replacement

it might be possible to support both at once, but for now this is
enough and it's simpler.
@ghost ghost requested a review from rgrinberg March 19, 2018 15:15
@@ -95,7 +95,7 @@ module Backend = struct
; field "flags" Ordered_set_lang.Unexpanded.sexp_of_t t.info.flags
; field_o "generate_runner" Action.Unexpanded.sexp_of_t
t.info.generate_runner
; field_o "extends" (list f) (Option.map t.extends ~f:Result.ok_exn)
; field "extends" (list f) (Result.ok_exn t.extends) ~default:[]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change to field makes sure the compatibility with old backends, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should be the same S-expression representation

@ghost ghost merged commit a8072f0 into ocaml:master Mar 20, 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.

1 participant