You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Include directories added to the target inside a rule are not added to the flags of clang-scan-deps, resulting in a compile error.
It seems that the added options depend on the first file/target scanned. If target src2 is removed from xmake.lua then the option is added as expected, and the source compiles fine.
Expected Behavior
Running xmake config --toolchain=clang -v, the include directory added in the rule should be added to the command line of clang-scan-deps, too. It works this way for normal C++ compilation units, but not for C++20 modules. The idea here is to have a private include file only used in the module body (e.g. a database file / generated code).
Xmake Version
v2.9.7+dev.b029e65ed
Operating System Version and Architecture
Ubuntu 24.10 x86_64
Describe Bug
The Include directories added to the target inside a rule are not added to the flags of clang-scan-deps, resulting in a compile error.
It seems that the added options depend on the first file/target scanned. If target
src2
is removed fromxmake.lua
then the option is added as expected, and the source compiles fine.Expected Behavior
Running
xmake config --toolchain=clang -v
, the include directory added in the rule should be added to the command line ofclang-scan-deps
, too. It works this way for normal C++ compilation units, but not for C++20 modules. The idea here is to have a private include file only used in the module body (e.g. a database file / generated code).Project Configuration
Additional Information and Error Logs
Configuration output:
The text was updated successfully, but these errors were encountered: