// file : mod/build-config.cxx -*- C++ -*- // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #include #include namespace brep { using namespace bbot; shared_ptr shared_build_config (const path& p) { static std::map> configs; auto i (configs.find (p)); if (i != configs.end ()) { if (shared_ptr c = i->second.lock ()) return c; } shared_ptr c ( make_shared (parse_buildtab (p))); configs[p] = c; return c; } }