Skip to content

Commit e3cd69e

Browse files
committed
Merging r341697:
------------------------------------------------------------------------ r341697 | arphaman | 2018-09-07 11:59:45 -0700 (Fri, 07 Sep 2018) | 4 lines warn_stdlibcxx_not_found: suggest '-stdlib=libc++' instead of '-std' Addresses first post-commit feedback for r335081 from Nico ------------------------------------------------------------------------ llvm-svn: 347276
1 parent 85e1cc5 commit e3cd69e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticFrontendKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def warn_option_invalid_ocl_version : Warning<
238238
"OpenCL version %0 does not support the option '%1'">, InGroup<Deprecated>;
239239

240240
def warn_stdlibcxx_not_found : Warning<
241-
"include path for stdlibc++ headers not found; pass '-std=libc++' on the "
241+
"include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the "
242242
"command line to use the libc++ standard library instead">,
243243
InGroup<DiagGroup<"stdlibcxx-not-found">>;
244244
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang -cc1 -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist %s 2>&1 | FileCheck %s
22
// RUN: %clang -cc1 -triple arm64-apple-ios6.0.0 -isysroot %S/doesnotexist -stdlib=libc++ %s -verify
3-
// CHECK: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead
3+
// CHECK: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead
44

55
// expected-no-diagnostics

0 commit comments

Comments
 (0)