I am trying to get xelatex to output the pdf into a separate folder, say pdf, (also separate from the other build files in say build). I am running
-xelatex -synctex=1 -interaction=nonstopmode -shell-escape -output-directory=pdf
following the -output-directory directive that is recommended in pdflatex for this. Unfortunately, without success so far. I run it on Linux with texlive.