hesphoros opened a new pull request, #3548: URL: https://github.com/apache/brpc/pull/3548
### What problem does this PR solve? Issue Number: N/A Problem Summary: The macOS documentation does not provide a verified CMake Debug build command for Apple Silicon or explain how to handle SDK selection and optional compilation database generation. ### What is changed and the side effects? Changed: - Add matching English and Chinese CMake Debug build instructions for Apple Silicon. - Discover Homebrew and macOS SDK paths dynamically. - Document `CMAKE_EXPORT_COMPILE_COMMANDS` as an optional setting for clangd and similar tools. - Add troubleshooting guidance for mismatched Command Line Tools and Xcode SDKs. - Ignore the documented `build-debug` output directory. Side effects: - Performance effects: None; documentation only. - Breaking backward compatibility: None. ### Verification - Configured a fresh Debug build on an Apple M4 without `CMAKE_EXPORT_COMPILE_COMMANDS`; confirmed that `compile_commands.json` was not generated. - Built `brpc-static` successfully with `cmake --build <build-dir> --target brpc-static --parallel 4`. - Verified `libbrpc.a` is an arm64 archive with `lipo -info`. --- ### Check List: - [x] The documented build command is compilable. - [x] English and Chinese documentation are kept in sync. - [x] The change follows the Contributor Covenant Code of Conduct. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
