split the C compiler's name from its options

SEX_CC="ccache cc" went looking for an executable of that whole name;
it is read as make reads CC now.
This commit is contained in:
2026-10-19 14:48:43 +03:00
parent bf8d85e68e
commit 33c8eca51f
3 changed files with 34 additions and 10 deletions

View File

@@ -90,7 +90,8 @@ sexc ./examples/hello-world.sex -o hello
That's it. Now you should have executable named ~hello~ in your
directory. Sex uses C under the hood, the default C compiler is ~cc~,
but you can pass any using ~--c-compiler~ option, or by setting
~SEX_CC~ environment variable.
~SEX_CC~ environment variable. Either may carry the compiler's own
options, as ~make~'s ~CC~ does: ~SEX_CC="ccache cc"~.
Everything after ~--~ is handed to the C compiler exactly as written: