I am trying to build c++ std modules with latest clang without success #4084
Replies: 2 comments 1 reply
-
try xmake f -c
xmake -rvD and let me see the log. @Arthapz Any idea? |
Beta Was this translation helpful? Give feedback.
-
If you really want to use the std modules i would suggest to use the official clang c++23 std modules and not the clang module emulation that we implemented in XMake (that are not C++20 modules) https://github.com/llvm/llvm-project/tree/main/libcxx/modules i tried it with XMake and it work well, we will add the support on XMake when llvm ship these modules (actually they only present in source tree, not in final llvm installation) and if you are using clang on windows i'm currently checking if we can use the MSVC std module with clang |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some reason build works only once
$ xmake
[ 0%]: generating.module.deps src/main.cpp
[ 50%]: compiling.release src/main.cpp
[ 66%]: linking.release stdmodules_cpp_only
[100%]: build ok, spent 0.341s
$ xmake
[ 50%]: compiling.release src/main.cpp
[ 66%]: linking.release stdmodules_cpp_only
error: /usr/bin/ld: cannot find -lstdc++: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Beta Was this translation helpful? Give feedback.
All reactions