-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move config modules to build_info dune library
- Loading branch information
Showing
15 changed files
with
62 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config*.ml |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,34 @@ | ||
(** Goblint build info. *) | ||
|
||
(** OCaml compiler flambda status. *) | ||
let ocaml_flambda = ConfigOcaml.flambda | ||
|
||
(** Dune profile. *) | ||
let dune_profile = ConfigProfile.profile | ||
|
||
(** Goblint version from git. *) | ||
let git_version = ConfigVersion.version | ||
|
||
(** Goblint version from release archive. *) | ||
let release_version = "%%VERSION_NUM%%" | ||
|
||
(** Goblint git commit from release archive. *) | ||
let release_commit = "%%VCS_COMMIT_ID%%" | ||
|
||
(** Goblint version. *) | ||
let version = | ||
let commit = ConfigVersion.version in | ||
if BatString.starts_with release_version "%" then | ||
commit | ||
else ( | ||
let commit = | ||
if commit = "n/a" then (* released archive has no .git *) | ||
release_commit | ||
else | ||
commit | ||
in | ||
Format.sprintf "%s (%s)" release_version commit | ||
) | ||
|
||
(** Statically linked libraries with versions. *) | ||
let statically_linked_libraries = Dune_build_info.statically_linked_libraries |
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
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
This file was deleted.
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
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