On Mon, May 15 2023, Ihor Radchenko <yanta...@posteo.net> wrote: > Leo Butler <leo.but...@umanitoba.ca> writes: > >> On the other hand, I don't see any sense in producing a link to the >> binary file. Org can't do anything with that link, so the user would >> need to write something like ":results file :file /path/to :wrap >> comment". That is why I would prefer something like a :bin-file header. > > I am not sure how I feel about such side effects of evaluation. > Is there any other babel backend that is doing something similar?
ob-java.el deals with it by using a :dir header; if non-nil, the compiled files are placed in that directory instead of `org-babel-temporary-directory'. (And, by default, the :dir header is "."). The filename is determined by the packagename. Leo