llvm / llvm/llvm-project

[clang][flang] MSVC-style options should warn instead of crash?

Open
#187,481 2 comments 0 reactions 0 assignees View on GitHub
clang:driver flang:driver
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Passing MSVC-style options like `clang /DEFAULTLIB:foo ...` causes 'no such file or directory' errors with clang (and flang). Over in gh-119179, @tarunprabhu suggested that instead a warning should be emitted and such options should be ignored, similar to how clang-cl handles unknown clang-style options.

It's not clear to me how this would be implemented, though, since these options could instead be interpreted as absolute paths (starting with `/`)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.