被xmake的缓存困扰 #4471
Replies: 7 comments 11 replies
-
这是xmake的缓存机制造成的吗?只要命令不变,即便删除了项目目录下的.xmake,也会得到一样的包版本? |
Beta Was this translation helpful? Give feedback.
-
已解决,加-c参数即可 |
Beta Was this translation helpful? Give feedback.
-
不用edx,完全手动执行xmake命令也能复现
5 生成compile_commands.json
6 生成build.ninja
7 构建项目,因为前面用了cpptrace0.3.1的代码,所以肯定会失败
8 更新本地的xrepo仓库
9 删掉项目目录下的.edx和.xmake目录
10 重新配置
11 重新生成build.ninja
12 发现生成的build.ninja里面仍然是用的 0.1版本的cpptrace |
Beta Was this translation helpful? Give feedback.
-
在第一幅图第61行,第二次执行配置的时候就有点不对劲,我这里加了vD参数,尽管我删掉了项目testxxx路径下的.edx目录。 |
Beta Was this translation helpful? Give feedback.
-
我好像知道为啥了,因为xmake f 的时候读取和生成 .xmake 不是在项目路径下生成,而是在当前执行xmake命令所在目录生成。 |
Beta Was this translation helpful? Give feedback.
-
你看下 #3342 这个对 2.7.7 之后增加了对 workdir 的锁定,projectdir 外置编译支持。 ![]() 另外,只需要设置一次 |
Beta Was this translation helpful? Give feedback.
-
对了大佬,这里提到另外一个问题。当执行xmake f 配置的时候,是否应该检查一下当前配置里的包版本和本地 xmake-repo 列表里面的版本 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
xmake在不同路径下执行,最终的效果不一样
https://gitee.com/scu319hy/edx/issues/I8LTIE#note_23260909_link
Beta Was this translation helpful? Give feedback.
All reactions