Skip to content

[200_20] 将S7从3rdparty迁移至src目录#417

Merged
da-liii merged 4 commits intomainfrom
da/200_20/develop_on_s7
Feb 13, 2026
Merged

[200_20] 将S7从3rdparty迁移至src目录#417
da-liii merged 4 commits intomainfrom
da/200_20/develop_on_s7

Conversation

@da-liii
Copy link
Contributor

@da-liii da-liii commented Feb 13, 2026

  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. 验证构建和测试正常工作

da-liii and others added 4 commits February 13, 2026 21:30
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>
@da-liii da-liii merged commit c729df2 into main Feb 13, 2026
4 checks passed
@da-liii da-liii deleted the da/200_20/develop_on_s7 branch February 13, 2026 14:01
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.

1 participant