]> granicus.if.org Git - clang/commitdiff
warn_stdlibcxx_not_found: suggest '-stdlib=libc++' instead of '-std'
authorAlex Lorenz <arphaman@gmail.com>
Fri, 7 Sep 2018 18:59:45 +0000 (18:59 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 7 Sep 2018 18:59:45 +0000 (18:59 +0000)
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

include/clang/Basic/DiagnosticFrontendKinds.td
test/Frontend/warning-stdlibcxx-darwin.cpp

index 66287933b7ca369a9dfffbfffc2692ede51912de..2bf85e0098d5778b34b769097d066b727e10e7db 100644 (file)
@@ -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">>;
 }
index 3c132b6a833b89b3afd2a240088eb61f82e85a3b..9f31373be7f8029ee39bfc4f870396126e80372a 100644 (file)
@@ -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