Skip to content

build: improve build#226

Merged
16bit-ykiko merged 2 commits into
mainfrom
misc
Sep 5, 2025
Merged

build: improve build#226
16bit-ykiko merged 2 commits into
mainfrom
misc

Conversation

@star-hengxing

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @star-hengxing, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on improving the project's build system and related documentation. It streamlines the integration test setup, refines compiler-specific optimizations for better compatibility, and enhances the xmake build configuration to include performance improvements like ccache and more robust flag handling.

Highlights

  • Build Documentation Update: Simplified the command for running integration tests in both English and Chinese documentation by directly specifying the resource-dir path, removing the need for a dynamic LLVM_INSTALL_DIR environment variable.
  • Compiler Optimization Pragma Refinement: Modified the src/Async/FileSystem.cpp file to ensure that the optimize("g", off/on) pragmas are only applied when compiling with MSVC and not with Clang, even when Clang is used in MSVC compatibility mode. This prevents potential compilation issues.
  • Xmake Build Configuration Enhancements: Enabled ccache for development builds in xmake.lua, which will significantly speed up recompilations. Corrected the destination path for copying LLVM's lib/clang resources post-build, ensuring proper directory structure. Updated the syntax for applying the /Zc:preprocessor flag for MSVC, improving the robustness of build configurations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several improvements to the build process. Enabling ccache for development builds is a great enhancement for build speed. The adjustments to compiler-specific preprocessor directives for MSVC vs. clang-cl improve cross-compiler compatibility on Windows. The updates to the xmake.lua file for resource path handling and flag syntax are also positive changes. My main feedback relates to the documentation, where hardcoded example paths could be clarified to avoid confusion for developers on different platforms.

Comment thread docs/en/dev/build.md
Comment thread docs/zh/dev/build.md
@16bit-ykiko 16bit-ykiko merged commit 9e55381 into main Sep 5, 2025
9 checks passed
@16bit-ykiko 16bit-ykiko deleted the misc branch September 5, 2025 16:41
@16bit-ykiko 16bit-ykiko changed the title Improve build build: improve build Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants