passl pragma

The passl pragma can be used to pass additional parameters to the linker like one would be using the command-line switch --passl:

  1. {.passl: "-lSDLmain -lSDL".}

Note that one can use gorge from the system module to embed parameters from an external command that will be executed during semantic analysis:

  1. {.passl: gorge("pkg-config --libs sdl").}