mirror of https://github.com/microsoft/clang.git
warn_stdlibcxx_not_found: suggest '-stdlib=libc++' instead of '-std'
Addresses first post-commit feedback for r335081 from Nico git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26a2dfb9c8
commit
6bc81b988f
|
@ -238,7 +238,7 @@ def warn_option_invalid_ocl_version : Warning<
|
|||
"OpenCL version %0 does not support the option '%1'">, InGroup<Deprecated>;
|
||||
|
||||
def warn_stdlibcxx_not_found : Warning<
|
||||
"include path for stdlibc++ headers not found; pass '-std=libc++' on the "
|
||||
"include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the "
|
||||
"command line to use the libc++ standard library instead">,
|
||||
InGroup<DiagGroup<"stdlibcxx-not-found">>;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang -cc1 -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist %s 2>&1 | FileCheck %s
|
||||
// RUN: %clang -cc1 -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist -stdlib=libc++ %s -verify
|
||||
// CHECK: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead
|
||||
// CHECK: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead
|
||||
|
||||
// expected-no-diagnostics
|
||||
|
|
Loading…
Reference in New Issue