Polyman Documentation - v3.0.0
    Preparing search index...
    • Returns the prebuilt testlib to compile request.sourcePath against, building it on first use. Returns null when the source must be compiled against the original header: the cache is disabled (--no-cache), the source is not a testlib program, it has its own testlib.h next to it, it defines something before including testlib, or testlib cannot be split.

      Never throws; any problem means "compile as usual".

      Parameters

      Returns Promise<PrebuiltTestlib | null>

      The prebuilt testlib, or null

      const prebuilt = await findPrebuiltTestlib({
      sourcePath: '/p/validator/val.cpp', compiler: 'g++', flags: ['-O2', '-std=c++23'],
      });
      // g++ -O2 -std=c++23 -iquote <prebuilt.includeDir> -iquote /p -o val <prebuilt.objectPath> val.cpp