@@ -47,18 +47,27 @@ function storage_dir(args::AbstractString...)
47
47
end
48
48
ccache_dir () = storage_dir (" ccache" )
49
49
50
+ """
51
+ enable_apple_file()
52
+
53
+ Return the path to file that, if exists, indicates that the user accepts to
54
+ download macOS SDK. The file is automatically created when the package is
55
+ loaded if the environment variable `BINARYBUILDER_AUTOMATIC_APPLE` is set to
56
+ `"true"`.
57
+ """
58
+ enable_apple_file () = storage_dir (" enable_apple" )
59
+
50
60
# These globals store important information such as where we're downloading
51
61
# the rootfs to, and where we're unpacking it. These constants are initialized
52
62
# by `__init__()` to allow for environment variable overrides from the user.
53
63
storage_cache = " "
54
- automatic_apple = false
55
64
use_squashfs = false
56
65
allow_ecryptfs = false
57
66
use_ccache = false
58
67
bootstrap_list = Symbol[]
59
68
60
69
function __init__ ()
61
- global runner_override, use_squashfs, automatic_apple, allow_ecryptfs
70
+ global runner_override, use_squashfs, allow_ecryptfs
62
71
global use_ccache, storage_cache
63
72
64
73
# Pkg does this lazily; do it explicitly here.
@@ -71,7 +80,7 @@ function __init__()
71
80
# If the user has signalled that they really want us to automatically
72
81
# accept apple EULAs, do that.
73
82
if get (ENV , " BINARYBUILDER_AUTOMATIC_APPLE" , " " ) == " true"
74
- automatic_apple = true
83
+ touch ( enable_apple_file ())
75
84
end
76
85
77
86
# If the user has overridden our runner selection algorithms, honor that
0 commit comments