Skip to content

Conversation

@artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 29, 2022

This change deprecates ArgsResolver API that takes a boolean forceResponseFiles in favor of a new API that takes an ResponseFileHandling enum. This enum allows the previous behaviors of .forced and .heuristic (true and false, respectively of forceResponseFiles), and adds an option to override disable use of response files completely (.disabled).

This is useful in the example of dependency scanning when it is done via a C interface to a compiler library: even for exceedingly-long command-line argument lists, using response files is not necessary since we just pass in an address of an already-allocated memory buffer containing the argument list, directly.

Resolves rdar://99296444

@artemcm artemcm requested review from bnbarham, nkcsgexi and owenv August 29, 2022 22:28
@artemcm
Copy link
Contributor Author

artemcm commented Aug 29, 2022

@swift-ci test

This change deprecates 'ArgsResolver' API that takes a boolean 'forceResponseFiles' in favour of a new API that takes an 'ResponseFileHandling' enum. This enum allows the previous behaviors of '.forced' and '.heuristic' ('true' and 'false', respectively of 'forceResponseFiles'), and adds an option to override disable use of response files completely ('.disabled').

This is useful in the example of dependency scanning when it is done via a C interface to a compiler library: even for exceedingly long command-line argument lists, using response files is not necessary since we just pass in a pointer to an already-allocated memory buffer containing the argument list, directly.

Resolves rdar://99296444
@artemcm artemcm force-pushed the NoResponseInLibraryScan branch from b9b874f to c86aaca Compare August 30, 2022 15:56
@artemcm
Copy link
Contributor Author

artemcm commented Aug 30, 2022

@swift-ci test

@artemcm artemcm merged commit 436598f into swiftlang:main Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants