Hi,
what's the proper way to find out where a dumped executable (resulting from a program-op) has landed? I would like to it to literally :move-here #p"./", to speak in MAKE-BUILD terms... Note that *I* know where it is in the cache; what I want is programmatic access to its location.
Thanks!
On Tue, 2021-03-16 at 17:52 +0100, Didier Verna wrote:
Hi,
what's the proper way to find out where a dumped executable (resulting from a program-op) has landed? I would like to it to literally :move-here #p"./", to speak in MAKE-BUILD terms... Note that *I* know where it is in the cache; what I want is programmatic access to its location.
A compbination of apply-output-translations and system-relative- pathname should do the trick:
(let ((system-name "cl-ppcre")) (asdf:apply-output-translations (asdf:system-relative-pathname system-name system-name)))
This should give you what you want:
(asdf:output-files 'asdf:program-op "my-system")
-Eric
Didier Verna didier@lrde.epita.fr writes:
Hi,
what's the proper way to find out where a dumped executable (resulting from a program-op) has landed? I would like to it to literally :move-here #p"./", to speak in MAKE-BUILD terms... Note that *I* know where it is in the cache; what I want is programmatic access to its location.
Thanks!
Eric Timmons etimmons@mit.edu wrote:
This should give you what you want:
(asdf:output-files 'asdf:program-op "my-system")
Cool! Thank you (both)!