Conversation
Contributor
da-liii
commented
Feb 13, 2026
- 将s7.c和s7.h从3rdparty/s7重命名到src目录
- 更新xmake.lua构建配置:
- 移除对s7外部包的依赖
- 将s7.c直接添加到goldfish目标的源文件中
- 同步原3rdparty/s7/xmake.lua中的S7配置
- 添加option("gmp")支持
- 更新goldfish.hpp中的头文件包含路径
- 验证构建和测试正常工作
1. 将s7.c和s7.h从3rdparty/s7重命名到src目录
2. 更新xmake.lua构建配置:
- 移除对s7外部包的依赖
- 将s7.c直接添加到goldfish目标的源文件中
- 同步原3rdparty/s7/xmake.lua中的S7配置
- 添加option("gmp")支持
3. 更新goldfish.hpp中的头文件包含路径
4. 验证构建和测试正常工作
Co-Authored-By: Claude <noreply@anthropic.com>
添加Windows平台特定的构建配置:
- set_optimize("faster")
- set_languages("c11")
- add_cxxflags("/fp:precise")
这些配置来自原3rdparty/s7/xmake.lua文件,修复Windows构建失败问题。
Co-Authored-By: Claude <noreply@anthropic.com>
goldfish目标已设置set_languages("c++17"),set_languages("c11")会覆盖它。
由于goldfish包含C++代码,需要C++17支持,而s7.c可以在C++17模式下编译。
Co-Authored-By: Claude <noreply@anthropic.com>
使用add_files的{languages = "c11"}参数为s7.c文件单独设置C11标准,
而goldfish.cpp继续使用C++17标准。
这样既满足了s7.c需要C11标准的要求,
又保持了goldfish.cpp的C++17兼容性。
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.