roualdes / bridgestan

BridgeStan provides efficient in-memory access through Python, Julia, and R to the methods of a Stan model.
https://roualdes.github.io/bridgestan
BSD 3-Clause "New" or "Revised" License
87 stars 12 forks source link

Move Julia TBB detection to instantiation time #213

Closed WardBrian closed 4 months ago

WardBrian commented 4 months ago

Unlike Python or R, Julia was setting up the Windows PATH at startup rather than at runtime. Among other things, this meant that calls to set_bridgestan_path couldn't influence this, since by the time that function was available, it was already too late.

This is in part thanks to a forum report: https://discourse.mc-stan.org/t/various-compilation-problems-with-various-interfaces/34155/5