pass all args after '--' to C compiler verbatim

This commit is contained in:
2026-09-14 15:46:48 +03:00
parent 0db4a11a2b
commit af6e778185
2 changed files with 27 additions and 8 deletions

View File

@@ -49,6 +49,12 @@ 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.
Everything after ~--~ is handed to the C compiler exactly as written:
#+begin_src shell
sexc example/sdl3-triangle.sex -o triangle -- `pkg-config --cflags --libs sdl3` -framework OpenGL
#+end_src
** Example
An example of Sex source:
#+begin_src scheme