(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright Â© 2021-2024 OCamlPro *)
(* Written by the Owi programmers *)

open Syntax

let validate filename =
  let+ (_modul : Binary.modul) =
    Compile.File.until_binary_validate ~unsafe:false filename
  in
  ()

let cmd debug files =
  if debug then Log.debug_on := true;
  list_iter validate files
