Not really sure, you can see the code here:

https://github.com/rejectedsoftware/dub/blob/master/build.sh