[all-commits] [llvm/llvm-project] 9621b1: [clang] Don't include C++ Standard Library headers...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Wed Nov 16 12:25:57 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9621b1776a1b3d16735b3c5da31585ad64a018df
https://github.com/llvm/llvm-project/commit/9621b1776a1b3d16735b3c5da31585ad64a018df
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths:
M clang/lib/Driver/ToolChains/Darwin.cpp
M clang/lib/Driver/ToolChains/Fuchsia.cpp
M clang/lib/Driver/ToolChains/MinGW.cpp
M clang/lib/Driver/ToolChains/WebAssembly.cpp
M clang/test/Driver/darwin-header-search-libcxx.cpp
M clang/test/Driver/nostdincxx.cpp
Log Message:
-----------
[clang] Don't include C++ Standard Library headers when -nostdinc is used
This is a follow-up to 53c98d85a, which made the same change but only
for GNU. It seems that we should try to provide a consistent behavior
across all targets.
This fixes an issue where clang/test/Driver/nostdincxx.cpp would start
failing on non-GNU targets because that test was too loose in its checks.
It would only check that 'file not found' was part of the error message,
but didn't ensure that the file we had not found was <vector>.
Differential Revision: https://reviews.llvm.org/D138062
More information about the All-commits
mailing list