Polyman Documentation - v3.1.0
    Preparing search index...

    Function validateCompilerConfig

    • Checks the optional compiler block of Config.json. A missing block is fine; anything else must be an object with only cpp, javac and flags, where cpp and javac are non-blank strings and flags is an array of non-blank strings (one flag per item).

      Parameters

      • value: unknown

        The raw compiler value from Config.json

      Returns CompilerConfig

      The same block, typed ({} when missing)

      If the block or one of its fields has the wrong shape

      validateCompilerConfig({ cpp: 'g++-15', flags: ['-Wall'] }); // ok
      validateCompilerConfig({ flags: '-Wall' }); // throws