@@ -166,14 +166,17 @@ defines the following variables:
166
166
167
167
An [ ` ExecutableProduct ` ] ( @ref ) is a binary executable that can be run on the
168
168
current platform. If, for example, the ` ExecutableProduct ` has been called
169
- ` mungify_exe ` , the wrapper defines an exported function named ` mungify_exe ` that
170
- should run by the user in one the following ways :
169
+ ` mungify_exe ` , the wrapper defines an exported function named ` mungify_exe ` .
170
+ To run that the recommended way is the following:
171
171
172
172
``` julia
173
- # Only available in Julia v1.6+
174
173
run (` $(mungify_exe ()) $arguments ` )
175
174
```
176
175
176
+ However, this is only available in Julia v1.6 and later. If you really must
177
+ support older Julia versions, you can also use the following syntax, which
178
+ however is not thread-safe and generally less flexible.
179
+
177
180
``` julia
178
181
mungify_exe () do exe
179
182
run (` $exe $arguments ` )
@@ -187,9 +190,6 @@ syntax you are defining the name of the variable that will be used to actually
187
190
call the binary with
188
191
[ ` run ` ] ( https://docs.julialang.org/en/v1/base/base/#Base.run ) .
189
192
190
- The former form is only available when using Julia v1.6, but should be
191
- preferred going forward, as it is thread-safe and generally more flexible.
192
-
193
193
A common point of confusion about ` ExecutableProduct ` s in JLL packages is why
194
194
these function wrappers are needed: while in principle you could run the
195
195
executable directly by using its absolute path in ` run ` , these functions ensure
0 commit comments