fpm
fpm copied to clipboard
Retain dynamically generated reponse file for ar command during build
Description
fpm appears to generate a response file for input into the ar emulator. See sample fpm -verbose output below:
ar -rs build\gfortran_4052131EE03EE371\opl\libopl.a **@build\gfortran_4052131EE03EE371\opl\libopl.a.resp**
The generated file libopl.a.resp appears to be deleted at completion of the build. I would like for fpm to retain it for interrogation.
Possible Solution
No response
Additional Information
No response
One would need to add a switch here:
https://github.com/fortran-lang/fpm/blob/1cfcaf8aeb9f428b78cfbac2a23e7a9842be65e9/src/fpm_compiler.F90#L1192
How should this be exposed to the user:
- a switch (
--debug-keep-resp,-save-temp,--keep-temp) - an environment variable, e.g.
FPM_DEBUG_KEEP_RESP? - namelist setting?