123456789101112131415161718192021222324252627282930313233343536373839(************************************************************************)(* * The Rocq Prover / The Rocq Development Team *)(* v * Copyright INRIA, CNRS and contributors *)(* <O___,, * (see version control and CREDITS file for authors & dates) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)openDeclarationsletset_local_flagsflagsenv=(* Explicitly ignored flags are set to not change *)letenvflags=Environ.typing_flagsenvinletflags={(* These flags may be overridden *)check_guarded=flags.check_guarded;check_positive=flags.check_positive;check_universes=flags.check_universes;check_eliminations=flags.check_eliminations;conv_oracle=flags.conv_oracle;share_reduction=flags.share_reduction;unfold_dep_heuristic=flags.unfold_dep_heuristic;allow_uip=flags.allow_uip;(* These flags may not *)enable_VM=envflags.enable_VM;enable_native_compiler=envflags.enable_native_compiler;indices_matter=envflags.indices_matter;impredicative_set=envflags.impredicative_set;sprop_allowed=envflags.sprop_allowed;}inEnviron.set_typing_flagsflagsenv(* Set from the -bytecode-compiler command line option. The checker consults
this rather than the environment's flag when deciding whether to recompile
the VM bytecode of a library. *)letenable_vm=reffalse