-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
增加module之后报错 #3420
Comments
目前还不支持 modules 和 protobuf 混用,这是因为 modules 的源码依赖扫描时间点过早,早于 protobuf rule 执行编译 这个目前还在想解决办法,短期内用不了。 |
ok, thanks. 看来模块的构建还不完善,先不用这个特性了。 |
For different issues, please open a separate issue. and please format your logs with markdown code block. |
我有一个相关的issue #3873,虽然我没有使用protobuf,但generating的时候依然没有加上-std选项。 |
I have a related issue #3873, although I don't use protobuf, I still don't add the -std option when generating. |
╰─$ rm -rf build && xmake clean && xmake f --runtimes=c++_static --toolchain=llvm --sdk=/usr/lib/llvm-19/ && xmake -rv 255 ↵ I encountered a similar issue where the compilation of module-related files failed due to not specifying the -std=xxx flag during compilation. |
Xmake 版本
2.7.7
操作系统版本和架构
mac m1 13.2 (22D49)
描述问题
https://github.com/ethanvc/pincpp/blob/main/xmake.lua
当去除注释之后,代码编译不过。错误信息为:
看起来像是依赖了模块之后,编译选项中丢失了-std=c++20.
期待的结果
可以构建通过。
工程配置
No response
附加信息和错误日志
No response
The text was updated successfully, but these errors were encountered: