You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取经consteval、反射处理后的GCC中间文件?遇-save-temps报错

问题
  • 已能获取预处理文件与汇编文件,现希望获取经consteval、反射等处理后的中间文件,用于验证生成代码是否符合预期。
  • 使用GCC每周快照版本(因GCC 16.1.1存在bug导致代码无法运行),代码中使用import std;语句。
  • 尝试添加-save-temps编译选项时,触发如下错误:
fatal error: ‘-MF’ and ‘-fdeps-file=’ cannot share an output file test/exco_test/CMakeFiles/exco_test.dir/exco_test.cpp.s

内容的提问来源于stack exchange,提问作者Graznarak

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.02 07:22:27