ruki

Results 1749 comments of ruki

If you use gcc to cross-compile, you can use the cross toolchain. No need to modify the gcc toolchain. msvc also supports cross-compilation, just need to modify the arch. e.g....

Therefore, I think you should just improve the clang toolchain and modify some of the clang handling in package.tools and so on. Perhaps we also need to improve toolchain:is_cross() https://github.com/xmake-io/xmake/blob/dev/xmake/core/base/private/is_cross.lua

And llvm toolchain. https://github.com/xmake-io/xmake/blob/dev/xmake/toolchains/llvm/xmake.lua - clang toolchain: clang on system, e.g. /usr/bin/clang, /usr/local/bin/clang-17, clang-18, clang-xx with system ar. - llvm toolchain: full llvm tools, use llvmsdk/bin/clang + llvmsdk/bin/llvm-ar (first) ,...

我看也没慢多少,也就1-2s的样子,xrepo env 每次都会创建一个干净的 empty project 去处理,默认 windows 平台的 msvc 是避免不了的。 ```console PS D:\projects\personal\xmake> xrepo env -vD cmake --version C:\Program Files (x86)\xmake\xmake.exe create -P . create working ... [+]: src\main.cpp [+]:...

这边没明显区别,-vD 下还慢了点 ```console PS D:\projects\personal\xmake> xmake l time xmake l private.xrepo env cmake --version checking for platform ... windows checking for architecture ... x64 checking for Microsoft Visual Studio (x64)...

bat 里面额外执行了一些东西 https://github.com/xmake-io/xmake/blob/a8ac81886afa4c174b76016a8e49016eae86ffa8/scripts/xrepo.bat#L24-L28 https://github.com/xmake-io/xmake/blob/a8ac81886afa4c174b76016a8e49016eae86ffa8/scripts/xrepo.bat#L55-L57

> 所以 xrepo.bat 可以用 xmake lua 重写么,这样可以和多个平台共享同样逻辑,也方便维护,原来的 xrepo.bat 只执行 `xmake l xxx` 就行。 这个就要问 @xq114 了,最早之前,xrepo.bat 就是简单的 wrap `xmake l private.xrepo`

> 现在最新版本是直接没生效(执行 cl.exe 失败),只有 verbose 才成功了。 估计还是 xrepo.bat 有问题,xmake l private.xrepo env -b msvc shell 没问题。 不是可以的么 ``` PS D:\projects\xxx> xrepo env -b msvc shell checking for platform ... windows...

> > > 现在最新版本是直接没生效(执行 cl.exe 失败),只有 verbose 才成功了。 > > > 估计还是 xrepo.bat 有问题,xmake l private.xrepo env -b msvc shell 没问题。 > > > > > > 不是可以的么 > >...