public abstract class CCompilerInvoker extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CCompilerInvoker.CompilerErrorHandler |
static class |
CCompilerInvoker.CompilerInfo |
Modifier and Type | Field and Description |
---|---|
CCompilerInvoker.CompilerInfo |
compilerInfo |
Path |
tempDirectory |
Modifier | Constructor and Description |
---|---|
protected |
CCompilerInvoker(Path tempDirectory) |
public final Path tempDirectory
public final CCompilerInvoker.CompilerInfo compilerInfo
protected CCompilerInvoker(Path tempDirectory)
public static CCompilerInvoker create(Path tempDirectory)
public void verifyCompiler()
protected InputStream getCompilerErrorStream(Process compilingProcess)
protected abstract void verify()
protected abstract CCompilerInvoker.CompilerInfo createCompilerInfo(Path compilerPath, Scanner scanner)
protected static Class<? extends jdk.vm.ci.code.Architecture> guessArchitecture(String archStr)
public void compileAndParseError(List<String> options, Path source, Path target, CCompilerInvoker.CompilerErrorHandler handler, org.graalvm.compiler.debug.DebugContext debug)
protected boolean detectError(String line)
public Path getCCompilerPath()
protected abstract String getDefaultCompiler()
public List<String> createCompilerCommand(List<String> options, Path target, Path... input)