Skip to content

Commit

Permalink
Add machine triplet variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jun 27, 2023
1 parent 6929bee commit f2b16d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/state/opamSysPoll.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let normalise_arch raw =

let poll_arch () =
let raw = match Sys.os_type with
| "Unix" | "Cygwin" ->
| "Unix" | "Cygwin" ->
begin match Option.map (String.split_on_char '-') (OpamStd.Sys.machine_triplet ()) with
| Some (arch::_) -> Some arch
| _ -> OpamStd.Sys.uname "-m"
Expand Down Expand Up @@ -175,6 +175,7 @@ let variables =
"os-distribution", os_distribution;
"os-version", os_version;
"os-family", os_family;
"machine-triplet", lazy (OpamStd.Sys.machine_triplet ());
]

let cores =
Expand Down

0 comments on commit f2b16d6

Please sign in to comment.