Open davidpfister opened 5 months ago
Windows has a hard limit of 32767 characters per command line that cannot be avoided.
I believe fpm
cannot use something like rsp files, because the gfortran toolchains do not support them.
Instead, I think it would be viable to change the linking procedure according to the GCC guideline:
This would be suitable for all compilers and platforms.
That looks like a good and quite simple idea to implement
Description
The original issue appeared when building the project feq-parse with the following configuration
The test project has a quite large number of files (170), which results in a very long command line for the final linking. On Windows, command lines are limited in size and the present build exceeds the limit. This has been tested with
cmd
,msys2
andpowershell
without any difference.FWIW, Visual Studio creates temporary files (e.g. "RSP1.rsp") with the content of the command line and ifort is invoked as
ifort @".\RSP1.rsp
Expected Behaviour
The project should build on Windows without having to split the files to 2 or more subprojects.
Version of fpm
0.10.0, alpha
Platform and Architecture
Windows 10
Additional Information
The end of the build log is: