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).
compiler
Config.json
cpp
javac
flags
The raw compiler value from Config.json
The same block, typed ({} when missing)
{}
If the block or one of its fields has the wrong shape
validateCompilerConfig({ cpp: 'g++-15', flags: ['-Wall'] }); // okvalidateCompilerConfig({ flags: '-Wall' }); // throws Copy
validateCompilerConfig({ cpp: 'g++-15', flags: ['-Wall'] }); // okvalidateCompilerConfig({ flags: '-Wall' }); // throws
Checks the optional
compilerblock ofConfig.json. A missing block is fine; anything else must be an object with onlycpp,javacandflags, wherecppandjavacare non-blank strings andflagsis an array of non-blank strings (one flag per item).