title: Set the stack size for SBT
body: <p>I'm running SBT using my specially built Scala. My built Scala Compiler will do a lot of things at runtime, with a lot of function calls, which can be recursive. </p>
  
  <p>So when I run SBT using my built Scala Compiler, stack overflows after a long time. I try to set -J-Xss when starting SBT. But that doesn't work.</p>
  
  <p>I encountered the problem with SBT heap size before. And many posts says setting -J-Xmx when starting SBT won't change the JVM heap size because it is overridden by the default SBT memory options. 
  <a href="https://stackoverflow.com/questions/15280839/how-to-set-heap-size-for-sbt">How to set heap size for sbt?</a></p>
  
  <p>Now, I wonder whether -J-Xss can be overridden by default SBT options, just like -J-Xmx being overridden. Or I should simply try to set -J-Xss larger? </p>