-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(rules): custom alias for cinaps
Allow setting the alias used to run cinaps actions. This is done to override the behavior of attaching the cinaps action to both the `cinaps` and `runtest` aliases. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: d35a6315-e4ef-40d1-9527-783dcd82029a -->
- Loading branch information
Showing
3 changed files
with
42 additions
and
6 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,21 @@ | ||
Custom alias for the cinaps | ||
|
||
$ cat > dune-project <<EOF | ||
> (lang dune 3.7) | ||
> (using cinaps 1.2) | ||
> EOF | ||
|
||
$ cat > dune <<EOF | ||
> (cinaps | ||
> (files foo.ml) | ||
> (alias foo)) | ||
> EOF | ||
|
||
$ touch foo.ml | ||
|
||
$ dune build @foo --display short | ||
cinaps .cinaps.a7811055/cinaps.ml-gen | ||
ocamlc .cinaps.a7811055/.cinaps.eobjs/byte/dune__exe__Cinaps.{cmi,cmo,cmt} | ||
ocamlopt .cinaps.a7811055/.cinaps.eobjs/native/dune__exe__Cinaps.{cmx,o} | ||
ocamlopt .cinaps.a7811055/cinaps.exe | ||
cinaps alias foo |