public abstract class DefaultCompiler extends DelegatingTool implements Compiler
| Constructor and Description |
|---|
DefaultCompiler(Tool tool,
boolean useUnixPathSeparator) |
| Modifier and Type | Method and Description |
|---|---|
DependencyTrackingMode |
getDependencyTrackingMode() |
Optional<com.google.common.collect.ImmutableList<String>> |
getFlagsForColorDiagnostics() |
com.google.common.collect.ImmutableList<String> |
getFlagsForReproducibleBuild(String altCompilationDir,
Path currentCellPath) |
com.google.common.collect.ImmutableList<String> |
getPdcFlags() |
com.google.common.collect.ImmutableList<String> |
getPicFlags() |
com.google.common.collect.ImmutableList<String> |
getPreArgfileArgs() |
Optional<String> |
getStderr(ProcessExecutor.Result result) |
boolean |
getUseUnixPathSeparator() |
boolean |
isArgFileSupported() |
com.google.common.collect.ImmutableList<String> |
languageArgs(String inputLanguage) |
boolean |
needsToRemoveCompiledFilenamesFromOutput() |
com.google.common.collect.ImmutableList<String> |
outputArgs(String outputPath) |
com.google.common.collect.ImmutableList<String> |
outputDependenciesArgs(String outputPath) |
boolean |
shouldSanitizeOutputBinary() |
getCommandPrefix, getEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandPrefix, getEnvironmentpublic DefaultCompiler(Tool tool, boolean useUnixPathSeparator)
public com.google.common.collect.ImmutableList<String> getFlagsForReproducibleBuild(String altCompilationDir, Path currentCellPath)
getFlagsForReproducibleBuild in interface Compilerpublic Optional<com.google.common.collect.ImmutableList<String>> getFlagsForColorDiagnostics()
getFlagsForColorDiagnostics in interface Compilerpublic boolean isArgFileSupported()
isArgFileSupported in interface Compilerpublic com.google.common.collect.ImmutableList<String> getPreArgfileArgs()
getPreArgfileArgs in interface Compilerpublic com.google.common.collect.ImmutableList<String> outputArgs(String outputPath)
outputArgs in interface Compilerpublic com.google.common.collect.ImmutableList<String> outputDependenciesArgs(String outputPath)
outputDependenciesArgs in interface Compilerpublic com.google.common.collect.ImmutableList<String> languageArgs(String inputLanguage)
languageArgs in interface Compilerpublic com.google.common.collect.ImmutableList<String> getPdcFlags()
getPdcFlags in interface Compilerpublic com.google.common.collect.ImmutableList<String> getPicFlags()
getPicFlags in interface Compilerpublic DependencyTrackingMode getDependencyTrackingMode()
getDependencyTrackingMode in interface Compilerpublic boolean shouldSanitizeOutputBinary()
shouldSanitizeOutputBinary in interface Compilerpublic boolean needsToRemoveCompiledFilenamesFromOutput()
needsToRemoveCompiledFilenamesFromOutput in interface Compilerpublic Optional<String> getStderr(ProcessExecutor.Result result)
public boolean getUseUnixPathSeparator()
getUseUnixPathSeparator in interface Compiler