forked from rems-project/asl-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bootstrapping for offline dune files
- Loading branch information
1 parent
64a7ca7
commit a5c5244
Showing
8 changed files
with
1,565 additions
and
1,527 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(lang dune 2.8) | ||
(lang dune 2.9) | ||
(name asli) | ||
(version 0.2.0) | ||
|
||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 @@ | ||
; this manually-written file implements the bootstrapping for the offline lifter dune files. | ||
|
||
; to bootstrap without a dune.generated file: | ||
; | ||
; 1. cd offlineASL | ||
; 2. make blank file so dune executes: touch dune.generated | ||
; 3. write file which calls gen-command: ASLP_OFFLINE_BOOTSTRAP=true dune runtest offlineASL --auto-promote | ||
; 4. update file with result from gen-command: dune runtest offlineASL --auto-promote | ||
|
||
(rule | ||
(target dune.generated.new) | ||
(action | ||
(write-file %{target} " | ||
(rule (targets %{target}) | ||
(deps gen-command) | ||
(action (with-stdin-from gen-command (run asli))))")) | ||
(enabled_if %{env:ASLP_OFFLINE_BOOTSTRAP=false})) | ||
|
||
(rule | ||
(alias runtest) | ||
(package aslp_offline) | ||
(action (diff dune.generated dune.generated.new))) |
Oops, something went wrong.