This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new f0a96211d1 🔄 synced local 'docs/guide/' with remote 'docs/guide/'
f0a96211d1 is described below
commit f0a96211d1f0d0937423444c1c670af81962ce3e
Author: chaokunyang <[email protected]>
AuthorDate: Wed May 20 08:53:21 2026 +0000
🔄 synced local 'docs/guide/' with remote 'docs/guide/'
---
docs/guide/cpp/index.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/guide/cpp/index.md b/docs/guide/cpp/index.md
index 537ef9fd17..fba62ef411 100644
--- a/docs/guide/cpp/index.md
+++ b/docs/guide/cpp/index.md
@@ -42,6 +42,9 @@ The C++ implementation supports both CMake and Bazel build
systems.
- CMake 3.16+ (for CMake build) or Bazel 8+ (for Bazel build)
- C++17 compatible compiler (GCC 7+, Clang 5+, MSVC 2017+)
+When building with MSVC, configure your build system to pass
+`/Zc:preprocessor`.
+
### Using CMake (Recommended)
The easiest way to use Fory is with CMake's `FetchContent` module:
@@ -107,6 +110,14 @@ cc_binary(
)
```
+When building with MSVC, add the conforming preprocessor option to your Bazel
+configuration:
+
+```bazel
+# .bazelrc
+build --cxxopt=/Zc:preprocessor
+```
+
Then build and run:
```bash
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]