From aebfe5b6ef9b12a27c7bf168a5a3173bd24bee78 Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 21 Jun 2023 18:01:15 +0200 Subject: [PATCH] feature: allow arch_sixtyfour in enabled_if Signed-off-by: Ali Caglayan --- CHANGES.md | 3 +++ src/dune_rules/enabled_if.ml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 27c6ecba7e16..c89a55ebf07d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,9 @@ Unreleased - Add `dune show` command group which is an alias of `dune describe`. (#7946, @Alizter) +- `enabled_if` now supports `arch_sixtyfour` variable (#8023, fixes 7997, + @Alizter) + - Include source tree scans in the traces produced by `--trace-file` (#7937, @rgrinberg) diff --git a/src/dune_rules/enabled_if.ml b/src/dune_rules/enabled_if.ml index dd5d8d85c83f..83270f03ac23 100644 --- a/src/dune_rules/enabled_if.ml +++ b/src/dune_rules/enabled_if.ml @@ -18,6 +18,7 @@ let common_vars_list = ; "profile" ; "ocaml_version" ; "context_name" + ; "arch_sixtyfour" ] let common_vars ~since = @@ -26,6 +27,7 @@ let common_vars ~since = ~f:(fun var -> match var with | "context_name" -> (var, (2, 7)) + | "arch_sixtyfour" -> (var, (3, 9)) | _ -> (var, since)) common_vars_list)