]> granicus.if.org Git - clang/commit
[frontend] Don't include the C++ stdlib for -x assembler-with-cpp
authorAlex Lorenz <arphaman@gmail.com>
Thu, 28 Jun 2018 23:23:45 +0000 (23:23 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 28 Jun 2018 23:23:45 +0000 (23:23 +0000)
commit5b2dfe4f4d40e8496413d6c7a5d064dd7026bda3
treecb14734da3c97dc18bcfa207341c36a22c3fa51a
parent5fdc10dc8f915fe3ba480347288af144e7c44f84
[frontend] Don't include the C++ stdlib for -x assembler-with-cpp

The new C++ stdlib warning added in r335081 gets
triggered when compiling an assembly file with -x assembler-with-cpp.
This commit ensures that the C++ stdlib is not included when compiling assembly.
In general, it's not really useful to include the C++ stdlib search path when
compiling assembly source.

rdar://41359632

Differential Revision: https://reviews.llvm.org/D48736

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335940 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InitHeaderSearch.cpp
test/Frontend/nostdlib-for-asmpp.s [new file with mode: 0644]