ruki

Results 1749 comments of ruki

如果你用了包,默认的 Windows 平台,是跟 msvc 强绑定的,不要去切 set_toolchains("clang") 。。删了

set_runtimes("MD") 这个也删了

> 2023-11-15T16:24:19.3452006Z 2023-11-15T16:24:19.3456465Z patching C:\Users\runneradmin\AppData\Local\.xmake\packages\c\cgal\5.6\2b9b5691796f423d8bab124c8da5310f\lib\pkgconfig\cgal.pc .. 2023-11-15T16:24:19.3642727Z > "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe" -c -nologo /MT -std:c++14 -DCGAL_NO_GMP -DBOOST_ALL_NO_LIB /EHsc -external:W0 -external:IC:\Users\runneradmin\AppData\Local\.xmake\packages\c\cgal\5.6\2b9b5691796f423d8bab124c8da5310f\include -external:W0 -external:IC:\Users\runneradmin\AppData\Local\.xmake\packages\b\boost\1.83.0\5b1253f1a39d4ca598d03889169cc96a\include -external:W0 -external:IC:\Users\runneradmin\AppData\Local\.xmake\packages\e\eigen\3.4.0\1e3fb853352e4e3a858999162e9dedd3\include -external:W0 -external:IC:\Users\runneradmin\AppData\Local\.xmake\packages\e\eigen\3.4.0\1e3fb853352e4e3a858999162e9dedd3\include\eigen3 -FoC:\Users\RUNNER~1\AppData\Local\Temp\.xmake\231115\_B68F35E24E484C6080F947E1A727AC90.o C:\Users\RUNNER~1\AppData\Local\Temp\.xmake\231115\_9FEB14670D4D488AB866EA986AE49CBF.cpp...

libpng is missing, you can use add_syslinks to add it, or debug qt rule

you can debug it. https://github.com/xmake-io/xmake/blob/ef6704260b307376a23ef0638c1ee8e48a4dbc5c/xmake/rules/qt/load.lua#L409

please wait for this patch https://github.com/xmake-io/xmake/pull/7095 then use `toolchain:memcache()` to cache some stuffs

目前 flags 检测原本就不是完全准的,不要太依赖这个。而且这边是通过尝试编译来检测的,只要加了 flags 不影响编译导致失败,都会通过。

help 列出来的原本就少,而且像 `-Wxxx` 这种的,根本不可能在 help 里面每个 Warnings 挨个给你列出来,help 检测只是加速常用 flags 的快速检测,其他的 fallback 到尝试编译检测,依赖编译是否通过。像这种只是 警告,不会编译报错的,很难全部检测出来,而且不影响编译。

没法复现 ```console PS D:\projects\personal\LuisaCompute> xmake f -p windows -a x64 --toolchain=clang-cl -m release --lc_vk_backend=true --lc_dx_backend=true --lc_cuda_backend=true --lc_enable_dsl=true --lc_enable_gui=true --lc_enable_unity_build=false --lc_enable_tests=true --lc_sdk_dir=../luisa_compute_sdks --check -c -y checking for LLVM Clang C/C++ Compiler...

试试这个 patch 应该可以了 https://github.com/xmake-io/xmake/pull/7136 首次编译不会复现,得二次增量编译时候才会复现,根本原因是 默认 clang-cl 走了 /showIncludes 去处理头文件依赖,这种方式,xmake 需要调用 msvc 去尝试自动探测开头 note: include 前缀,才能正确提取解析,内部用到了 msvc ,所以才会有这个 warning 现在改成优先走 gcc depfiles 格式了。 需要先 rebuild 整个项目,刷掉之前缓存的所有 .d 依赖数据才行。