Replies: 3 comments 6 replies
-
搞这个时候,还没 toolchain 模块了,不过这里用的就是全局 vs 配置,直接用 config.get 也足够了,当然,用 toolchain 的也可以。
所有 cache 都得清,否则切 arch/mode 会收到各种cache干扰 生成项目的 option ,在执行 xmake config 阶段,应该都 merge 进 configs 里面去了,这里 option cache 不会用到。 config.get 里面没去清 |
Beta Was this translation helpful? Give feedback.
-
target:sourcekinds()函数是怎么一回事?为什么我在cmake generator中使用这个函数能正常运行,在vs generator中用就报错
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/xmake-io/xmake/blob/master/xmake/plugins/project/cmake/cmakelists.lua#L81-L95 为啥几个generator获取compile flag的方式全都不一样?要获取cuda编译的flag应该以哪个为准?compiler.compflags这个接口还适用吗? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/xmake-io/xmake/blob/master/xmake/plugins/project/vstudio/vs.lua#L31
这里为啥使用config.get而不用core.tool.toolchain.load("vs")?
https://github.com/xmake-io/xmake/blame/master/xmake/plugins/project/vstudio/impl/vs201x.lua#L528
这里为何要清空缓存?如果想要生成项目时使用特定的option,应该怎么处理?
Beta Was this translation helpful? Give feedback.
All reactions