-
Notifications
You must be signed in to change notification settings - Fork 26
Use copy_files instead of symlink for dune to be happy #950
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| (copy_files | ||
| (alias runtest) | ||
| (files ../../../charon/tests/ui/*)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| (data_only_dirs charon) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,13 +19,14 @@ let | |
| buildInputs = [ ocamlPackages.calendar ]; | ||
| }; | ||
|
|
||
| # We need both `charon-ml` and the `dune-project` file. | ||
| # We need `charon-ml`, the `dune-project` file, and files that are used in tests. | ||
| src = lib.cleanSourceWith { | ||
| src = ./..; | ||
| filter = | ||
| path: type: | ||
| (lib.hasPrefix (toString ../charon-ml) path) | ||
| || (lib.hasPrefix (toString ../dune-project) path); | ||
| || (lib.hasPrefix (toString ../dune-project) path) | ||
| || (lib.hasPrefix (toString ../charon/tests/ui) path); | ||
| }; | ||
|
|
||
| charon-name_matcher_parser = | ||
|
|
@@ -72,11 +73,6 @@ let | |
| inherit src; | ||
|
|
||
| OCAMLPARAM = "_,warn-error=+A"; # Turn all warnings into errors. | ||
| preCheck = | ||
| if doCheck then '' | ||
| ln -sf ${charon}/tests-llbc charon-ml/tests/test-outputs | ||
| '' else | ||
| ""; | ||
|
Comment on lines
-75
to
-79
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something like this is needed because in the nix env the test outputs are otherwise not accessible
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You cuold
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, not sure what that means
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In nix we build the rust side and ocaml sides separately. So when we get to building the ocaml side, the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Anyway I can do the nix bits, but I'm not sure I want two copies to happen on the ocaml side
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aaaaah, got it |
||
| propagatedBuildInputs = with ocamlPackages; [ | ||
| core | ||
| ppx_deriving | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not needed: ocaml only needs
.llbcfiles, none of which are part of the git repo.