stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
140 stars 44 forks source link

Use -fsyntax-only in Jenkins #1350

Open WardBrian opened 1 year ago

WardBrian commented 1 year ago

Submission Checklist

Release notes

Try to use -fsyntax-only argument to Clang to speed up CI during the phases that only check if something actually compiles.

-fsyntax-only

Run the preprocessor, parser and semantic analysis stages

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

WardBrian commented 1 year ago

This shaves ~20-30 minutes off of the CI compared to what we do right now. If we don't actually care about code-generating or linking of the stanc-generated code, it seems like a nice speedup