cpbooster
cpbooster copied to clipboard
Allow absolute path for executable output file
Have you read the official website to guarantee that your feature does not exist yet? Official Website: https://searleser97.github.io/cpbooster/
Yes (also it could be mentioned that the output executable file path is parsed from the command)
Is your feature request related to a problem? Please describe.
I want to place the executable file in /tmp/a.out
.
Describe the solution you'd like
When I set command
to g++ -o /tmp/a.out
, I expect it to work.
Describe alternatives you've considered
At the moment there's a workaround: g++ -o ../../../../../../tmp/a.out
, but the error message is not easy-to-understand at all.
Additional context
It looks like that https://github.com/searleser97/cpbooster/blob/develop/app/src/Test/TesterFactory/CompiledTester.ts#L48 always explicitly prepend ./
(or .\
, depends on the operating system). It may be better to use path.resolve
or something similar?
I am aware of this behavior (it assumes that the executable is always located in your current directory), at the moment I coded this I didn't consider it necessary, but I'll add it to the "to-do" list