Peter N Lewis a écrit:
Does --unit-destination-path work, or am I missing something:
zany:~/unix/c/testdir% ls -l total 8 drwxrwxr-x 2 peter staff 68 May 1 12:06 build -rw-rw-r-- 1 peter staff 104 May 1 12:05 testbuild.pas zany:~/unix/c/testdir% cat testbuild.pas unit testbuild;
interface
procedure testbuild;
implementation
procedure testbuild; begin end;
end. zany:~/unix/c/testdir% gpc -c --unit-destination-path=./build/ testbuild.pas zany:~/unix/c/testdir% ls -l total 24 drwxrwxr-x 2 peter staff 68 May 1 12:06 build -rw-rw-r-- 1 peter staff 354 May 1 12:06 testbuild.gpi -rw-rw-r-- 1 peter staff 1076 May 1 12:06 testbuild.o -rw-rw-r-- 1 peter staff 104 May 1 12:05 testbuild.pas zany:~/unix/c/testdir% ls -l build zany:~/unix/c/testdir%
It seems to ignore the --unit-destination-path setting, is there some different setting I'm missing?
You seem to want to compile pascal programs exactly as C programs, i.e. ignoring automake / autobuild (same about your other message about FDE). --unit-destination-path and the like work as expected with automake / autobuild. Now I suppose that the fact that this does not work in this case of separate compilations is a bug, remaining because this odd way of compiling is less well tested than the normal way (for pascal).
Maurice