-
-
Notifications
You must be signed in to change notification settings - Fork 781
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 module 编译出现错误 fatal error: 'mm_malloc.h' file not found #5091
Comments
先试下 #5090 (comment) |
Try it first #5090 (comment) |
尝试添加 c++20,还是有相同问题: |
|
2148980 This patch is revert. Just restored, try again, |
解决了,谢谢! |
Solved, thank you! |
Xmake 版本
v2.9.1+HEAD.0c79f6162
操作系统版本和架构
Windows 11 version 23H2
描述问题
使用 clang 编译器和 C++ module 时,添加#include ,编译出现错误:fatal error: 'mm_malloc.h' file not found
#4575 中已将clang-scan-deps命令的clang改为绝对路径(增加了 envs = os.getenvs() 选项),但最新版本中rules/c++/modules/modules_support/clang/compiler_support.lua 的212行又没有了这个选项,导致问题再次出现。
测试发现添加 envs = os.getenvs(), force = true (防止缓存)可以暂时解决这个问题。
期待的结果
无错误
工程配置
xmake.lua
src/main.cpp
src/test.cppm
module; export module test;
附加信息和错误日志
xmake f --toolchain=clang
xmake -vD
The text was updated successfully, but these errors were encountered: