Skip to content

DependencyScan: change commandline processing style #63280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2023
Merged

Conversation

compnerd
Copy link
Member

We would previously unconditionally treat the command line as GNU style arguments. However, Windows uses a different command-line style, and this would incorrectly process the arguments, potentially corrupting paths which do not quote the path separator. Ideally, we would introduce a new api (swiftscan_compiler_target_info_query_v3?) that takes a quoting style (matching --rsp-quoting) which would allow us to support both quoting styles properly.

We would previously unconditionally treat the command line as GNU style arguments.  However, Windows uses a different command-line style, and this would incorrectly process the arguments, potentially corrupting paths which do not quote the path separator.  Ideally, we would introduce a new api (`swiftscan_compiler_target_info_query_v3`?) that takes a quoting style (matching `--rsp-quoting`) which would allow us to support both quoting styles properly.
@compnerd compnerd requested a review from artemcm as a code owner January 28, 2023 05:11
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd
Copy link
Member Author

Tested this locally, I'm going to merge this for now while we revert the original macros change.

@compnerd compnerd merged commit 8997f7e into main Jan 28, 2023
@compnerd compnerd deleted the compnerd/target-info branch January 28, 2023 18:43
@artemcm
Copy link
Contributor

artemcm commented Jan 30, 2023

Thanks @compnerd

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.

2 participants