You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cas] Add ValidateCAS action to ensure data coherence (swiftlang#460)
Use llvm-cas's new validate-if-needed action to ensure the correctness
of CAS data in the case of power failure or similar situations. This
action is added to prepareForBuilding to ensure that it is run before
any other other CAS accesses. Note that validate-if-needed internally
avoids performing unnecessary work - in particular, it only validates
data once for every machine boot.
rdar://150295950
// In a task we might use a discovered tool info to detect if the tool supports validation, but without that scaffolding, just check the specific error.
877
+
if result.exitStatus ==.exit(1) && result.stderr.contains(ByteString("Unknown command line argument '-validate-if-needed'")){
878
+
delegate.emit(data:ByteString("validation not supported").bytes, for: activityId, signature: signature)
0 commit comments