LYCSAL.link(module, outputFilename.mkString("."), config.clang match
case Some(file) => Some(file)
case None =>
if config.useEmbeddedClang then
None
else findExecutable("clang-16").orElse(findExecutable("clang")) match
case Some(file) => Some(file)
case None => throw RuntimeException("Unable to find clang-16 or clang in PATH! Make sure you have it installed, or alternately try running LYCSAL again with --use-embedded-clang, which probably won't work but is at least better than nothing. I'd advise installing clang if possible though.")