XMake + CLang comand line exceded length #5224
-
I want to build a module with clang++ that consists of a huge amount of submodules. Literally, I have a primary interface unit which re-exports (export import :partition) all its partition interface units. I have nearly 350 partitions to re-export, and clang++ cannot handle such a large command-line input. Is there any way to bypass that? I tried to fill an issue, but I am away from my target machine, and cannot publish code (due to NDA), and creationg minimal example is, well, a lot of work (assuming that I have 350 paritions to re-export) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
xmake should already handle long-path for clang link command. It should work. xmake/xmake/modules/core/tools/gcc.lua Line 565 in 2e844e2 So I need more information (logs, xmake.lua, compile commands) to be able to locate, which command is failing. Compile, link, or somewhere else. or you can debug source code. |
Beta Was this translation helpful? Give feedback.
-
@waruqi I still believe it is in the command line length. I have copy-pasted arguments of the failed command and used a response file to pass them to the clang, and everything compiled as it should. I will provide you with commands I ran to bootstrap and build the project, the output of the -v -D of those commands, .xmake folder and args.rs I used to finalise the build. Additionally, I want to say that the source code is completely fine and built with CMake. I am really enthusiastic to the xmake, and want to use it, but that is a real block for now. This is the of the info I can provide you with. |
Beta Was this translation helpful? Give feedback.
I've only dealt with the link command before, but it's hard to think that your compilation commands would be so long as well. You could try this patch.
#5226
xmake update -s github:xmake-io/xmake#longcmd