Re: euc build directory and output filename poll
- Posted by jimcbrown (admin) Oct 27, 2010
- 1169 views
DerekParnell said...
jeremy said...
We want the result of least surprise. If you issued:
C:\my_program> euc -builddir build -o my_program my_program.ex
Where would you expect to find my_program.exe:
- C:\my_program\build\my_program.exe
- C:\my_program\my_program.exe
My first reaction is to say the executable would be placed in the builddir location.
Same here. But if, and only if, -o was followed by the name of the program alone.
DerekParnell said...
How would this work ...
C:\my_program> euc -builddir build -o c:\some\other\path\my_name my_program.ex
If an absoute path is given to -o, then I feel it should be used directly, regardless of whether or not it's relative to the builddir.
If a relative path is given to -o, I can live with it being relative to the builddir - BUT with one exception.
I'd expect -o ./myprog to be in the current dir, not in builddir/./myprog Likewise, -o ../myprog should be in the parent dir of the current dir.