如何保留生成的临时文件? [英] How to keep generated temporary files?

查看:80
本文介绍了如何保留生成的临时文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何强制其保留诸如 CMakeFiles / cmTC_66ca1.dir / link.txt CMakeFiles / cmTC_66ca1.dir / testCCompiler.c之类的临时文件。 obj






C编译器无法编译简单的测试程序


,但所有单独启动命令的必需文件都已消失。

解决方案

使用 -debug-trycompile

  cmake --debug-trycompile ... 



< blockquote>

不要删除try_compile构建树。一次只对一个try_compile有用。



How to force it to keep temporaries like CMakeFiles/cmTC_66ca1.dir/link.txt or CMakeFiles/cmTC_66ca1.dir/testCCompiler.c.obj?

There is an error with the

The C compiler is not able to compile a simple test program

but all necessary files to launch commands separately are gone. It's very hard to analyze that.

解决方案

Call CMake with --debug-trycompile

cmake --debug-trycompile ...

Do not delete the try_compile build tree. Only useful on one try_compile at a time.

这篇关于如何保留生成的临时文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆