when using add_requires("llvm") and add_packages("llvm") in a target, during C++ module dependency scanning, xmake adds -isystem /usr/include to compiler flags (because llvm headers are located there), that causes the compilation to fail on both libstdcxx and libcxx.
Example:
Xmake Version
2.9.3
Operating System Version and Architecture
Fedora 40
Describe Bug
when using
add_requires("llvm")
andadd_packages("llvm")
in a target, during C++ module dependency scanning, xmake adds-isystem /usr/include
to compiler flags (because llvm headers are located there), that causes the compilation to fail on both libstdcxx and libcxx. Example:Expected Behavior
do not add
-isystem /usr/include
Project Configuration
Additional Information and Error Logs
screenshots provided above