Vincent Lefevre <[email protected]> wrote:
> However, unless tcc has been installed in /usr/local/bin (which is
> not the case with packages provided by typical Linux distributions
> or if the user has installed tcc under his home directory), this
> will not work, at least under Linux.
> This should be fixed.
This line achieves this while maintaining compatibility with other C compilers:
//usr/bin/env tcc -run "$0" ; exit $?
Alternatively:
#!/usr/bin/env -S tcc -run
This is worse, because it is less portable.
Refer to POSIX for the apparent lack of the -S option
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/env.html
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel