@@ -299,17 +299,17 @@ public final class ActoolCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
299
299
( macro == BuiltinMacros . ASSETCATALOG_COMPILER_INPUTS) ? cbc. scope. table. namespace. parseLiteralStringList ( assetSymbolInputs. map { $0. path. str } ) : lookup ( macro)
300
300
}
301
301
302
- let cachingEnabled = cbc. scope. evaluate ( BuiltinMacros . ENABLE_GENERIC_TASK_CACHING)
303
302
let action : ( any PlannedTaskAction ) ?
304
303
if let deferredAction = delegate. taskActionCreationDelegate. createDeferredExecutionTaskActionIfRequested ( userPreferences: cbc. producer. userPreferences) {
305
304
action = deferredAction
306
- } else if cachingEnabled {
305
+ } else if cbc . scope . evaluate ( BuiltinMacros . ENABLE_GENERIC_TASK_CACHING ) , let casOptions = try ? CASOptions . create ( cbc . scope , nil ) {
307
306
action = delegate. taskActionCreationDelegate. createGenericCachingTaskAction (
308
307
enableCacheDebuggingRemarks: cbc. scope. evaluate ( BuiltinMacros . GENERIC_TASK_CACHE_ENABLE_DIAGNOSTIC_REMARKS) ,
309
308
enableTaskSandboxEnforcement: !cbc. scope. evaluate ( BuiltinMacros . DISABLE_TASK_SANDBOXING) ,
310
309
sandboxDirectory: cbc. scope. evaluate ( BuiltinMacros . TEMP_SANDBOX_DIR) ,
311
310
extraSandboxSubdirectories: [ ] ,
312
- developerDirectory: cbc. scope. evaluate ( BuiltinMacros . DEVELOPER_DIR)
311
+ developerDirectory: cbc. scope. evaluate ( BuiltinMacros . DEVELOPER_DIR) ,
312
+ casOptions: casOptions
313
313
)
314
314
} else {
315
315
action = nil
@@ -359,17 +359,17 @@ public final class ActoolCompilerSpec : GenericCompilerSpec, SpecIdentifierType,
359
359
var ruleInfo = defaultRuleInfo ( cbc, delegate, lookup: lookup)
360
360
ruleInfo [ 0 ..< 1 ] = [ " CompileAssetCatalogVariant " , variant. rawValue]
361
361
362
- let cachingEnabled = cbc. scope. evaluate ( BuiltinMacros . ENABLE_GENERIC_TASK_CACHING)
363
362
let action : ( any PlannedTaskAction ) ?
364
363
if let deferredAction = delegate. taskActionCreationDelegate. createDeferredExecutionTaskActionIfRequested ( userPreferences: cbc. producer. userPreferences) {
365
364
action = deferredAction
366
- } else if cachingEnabled {
365
+ } else if cbc . scope . evaluate ( BuiltinMacros . ENABLE_GENERIC_TASK_CACHING ) , let casOptions = try ? CASOptions . create ( cbc . scope , nil ) {
367
366
action = delegate. taskActionCreationDelegate. createGenericCachingTaskAction (
368
367
enableCacheDebuggingRemarks: cbc. scope. evaluate ( BuiltinMacros . GENERIC_TASK_CACHE_ENABLE_DIAGNOSTIC_REMARKS) ,
369
368
enableTaskSandboxEnforcement: !cbc. scope. evaluate ( BuiltinMacros . DISABLE_TASK_SANDBOXING) ,
370
369
sandboxDirectory: cbc. scope. evaluate ( BuiltinMacros . TEMP_SANDBOX_DIR) ,
371
370
extraSandboxSubdirectories: [ Path ( " outputs/0/ \( overrideDir. basename) " ) ] ,
372
- developerDirectory: cbc. scope. evaluate ( BuiltinMacros . DEVELOPER_DIR)
371
+ developerDirectory: cbc. scope. evaluate ( BuiltinMacros . DEVELOPER_DIR) ,
372
+ casOptions: casOptions
373
373
)
374
374
} else {
375
375
action = nil
0 commit comments