-
-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang-scan-deps中应该使用绝对路径 #4575
Comments
Title: Absolute paths should be used in clang-scan-deps |
再试试 xmake update -s dev |
try again xmake update -s github:xmake-io/xmake#clang |
看起来不行,我在此处设置了print语句 if program and (toolname == "clang" or toolname == "clangxx") then
local clang = find_tool("clang", {program = program, envs = os.getenvs()})
print(clang)
if clang then
clang_path = clang.program
end
end 但输出的结果是
依然只有 |
再试试, |
Try again, |
现在可以正常工作了 |
It works fine now |
Xmake 版本
2.8.5
操作系统版本和架构
Windows 11 23H2
描述问题
而之所以clang找不到头文件是因为"clang-scan-deps --format=p1689 -- clang -x c++ -c module.ixx -o build.objs\test\windows\x64\release\module.ixx.obj -Qunused-arguments -m64 -std=c++23 -fexceptions -fcxx-exceptions"中的clang没有使用绝对路径,我在
rules/c++/modules/modules_support/clang.lua
里找到了问题所在但事实上
clang_path
中仍然是"clang"而不是绝对路径期待的结果
应该使用clang的绝对路径
工程配置
xmake的构建命令为
xmake f --toolchain=clang; xmake build
附加信息和错误日志
The text was updated successfully, but these errors were encountered: