fpm icon indicating copy to clipboard operation
fpm copied to clipboard

Retain dynamically generated reponse file for ar command during build

Open gwenning-arcfield opened this issue 1 year ago • 1 comments

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

gwenning-arcfield avatar Jun 19 '24 15:06 gwenning-arcfield

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?

ivan-pi avatar Mar 07 '25 22:03 ivan-pi