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
Make header search path behavior determined by driver used rather than -fms-compatibility.
Use of `-fms-compatibility` to opt-in to Microsoft header search behavior was
found to cause incompatibility problems with some projects that use the GCC
compatible driver on Windows. This change introduces a new `-fheader-search`
option to control the behavior. Valid values for the option include `gcc` and
`microsoft`. The `clang-cl` driver uses `-fheader-search=microsoft` by default;
all other drivers continue to use `-fheader-search=gcc` by default.
This change affects backward compatibility. The `-fheader-search=` option can
be used to opt in to previous behavior with some caveats. Clang 19 and earlier
followed the GCC header search behavior except when searching for header files
included by quoted inclusion (`#include "file.h"`) when `-fms-compatibility`
is specified; in that case, Microsoft's behavior of searching for the header
file in the directories of each file in the include stack was used. An option
to control this specific behavior is not provided, but could be added if found
to be necessary or useful.
0 commit comments