fixed spying so that the envirnoment variables are queried at run-time not at build-time
--- a/src/HOL/Tools/Nitpick/nitpick_isar.ML Wed Nov 20 23:14:06 2013 +0100
+++ b/src/HOL/Tools/Nitpick/nitpick_isar.ML Thu Nov 21 12:29:29 2013 +0100
@@ -144,10 +144,7 @@
structure Data = Theory_Data
(
type T = raw_param list
- val empty =
- default_default_params
- |> getenv "NITPICK_SPY" = "yes" ? AList.update (op =) ("spy", "true")
- |> map (apsnd single)
+ val empty = default_default_params |> map (apsnd single)
val extend = I
fun merge data = AList.merge (op =) (K true) data
)
@@ -258,7 +255,7 @@
val debug = (mode <> Auto_Try andalso lookup_bool "debug")
val verbose = debug orelse (mode <> Auto_Try andalso lookup_bool "verbose")
val overlord = lookup_bool "overlord"
- val spy = lookup_bool "spy"
+ val spy = getenv "NITPICK_SPY" = "yes" orelse lookup_bool "spy"
val user_axioms = lookup_bool_option "user_axioms"
val assms = lookup_bool "assms"
val whacks = lookup_term_list_option_polymorphic "whack" |> these
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_isar.ML Wed Nov 20 23:14:06 2013 +0100
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_isar.ML Thu Nov 21 12:29:29 2013 +0100
@@ -187,10 +187,7 @@
structure Data = Theory_Data
(
type T = raw_param list
- val empty =
- default_default_params
- |> getenv "SLEDGEHAMMER_SPY" = "yes" ? AList.update (op =) ("spy", "true")
- |> map (apsnd single)
+ val empty = default_default_params |> map (apsnd single)
val extend = I
fun merge data : T = AList.merge (op =) (K true) data
)
@@ -265,7 +262,7 @@
val debug = mode <> Auto_Try andalso lookup_bool "debug"
val verbose = debug orelse (mode <> Auto_Try andalso lookup_bool "verbose")
val overlord = lookup_bool "overlord"
- val spy = lookup_bool "spy"
+ val spy = getenv "SLEDGEHAMMER_SPY" = "yes" orelse lookup_bool "spy"
val blocking =
Isabelle_Process.is_active () orelse mode <> Normal orelse debug orelse
lookup_bool "blocking"