From d586a2ce2f25a7486a47aa9584fd1c446097326b Mon Sep 17 00:00:00 2001 From: Robin Lambertz Date: Mon, 17 Jul 2017 18:30:01 +0200 Subject: [PATCH] Document -x c++, not -x=c++ When using -x=c++ in bindgen arguments, we hit #340. We should use -x c++ instead. --- book/src/cpp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/cpp.md b/book/src/cpp.md index e0fbecb752..016caf1b19 100644 --- a/book/src/cpp.md +++ b/book/src/cpp.md @@ -17,7 +17,7 @@ of them in a type it is generating bindings for: * SFINAE When passing in header files, the file will automatically be treated as C++ if -it ends in `.hpp`. If it doesn't, adding `-x=c++` clang args can be used to +it ends in `.hpp`. If it doesn't, adding `-x c++` clang args can be used to force C++ mode. You probably also want to use `-std=c++14` or similar clang args as well.