Skip to content

Fix clang-cl treating file as a /U arg. - #670

Closed
roblabla wants to merge 1 commit into
rust-lang:mainfrom
roblabla:fix-clangcl-arg
Closed

roblabla wants to merge 1 commit into
rust-lang:mainfrom
roblabla:fix-clangcl-arg

Conversation

@roblabla

@roblabla roblabla commented Mar 31, 2022 •

Copy link
Copy Markdown
Contributor

On MacOS, paths will likely start with /Users, but clang-cl treats /U
as an argument, which leads to the source being mistaken for a flag. To
avoid this, we can pass -- before the source to ensure argument parsing
is disabled.

Fixes #513

On MacOS, paths will likely start with /Users, but clang-cl treats /U
as an argument, which leads to the source being mistaken for a flag. To
avoid this, we can pass -- before the source to ensure argument parsing
is disabled.
@roblabla

roblabla commented Mar 31, 2022 •

Copy link
Copy Markdown
Contributor Author

This was already previously proposed in https://github.com/alexcrichton/cc-rs/pull/514

I can confirm this works as expected.

@m-ou-se

m-ou-se commented May 11, 2022

Copy link
Copy Markdown
Member

#514 has been merged.

@m-ou-se m-ou-se closed this May 11, 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.

Use -- to separate flags and options from input filenames

2 participants