doe300 / VC4C

Compiler for the VC4CL OpenCL implementation
MIT License
118 stars 37 forks source link

Change cli interface #124

Closed nomaddo closed 5 years ago

nomaddo commented 5 years ago

This patch modify the CLI VC4C behaviors: allow users to omit specifying an output file when the number of input files are just one. This behavior is natural compared with other compilers (like gcc with -S or -c).

before

$ VC4C --bin -o ./test.cl.bin test.cl

after

$ VC4C --bin test.cl
nomaddo commented 5 years ago

Can you please also rewrite the output-file block (check for -o) so it does not abort the loop, but simply continues it? This will allow specifying options after the output file.

Fixed. And, I fixed a bug when -o is parsed and it is last.

Can you please re-add that if the compiler is run without any arguments (argc == 1), the help is printed?

Fixed. Actually, the behavior you said is kinder....