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, getEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandPrefix, getEnvironment
public DefaultCompiler(Tool tool, boolean useUnixPathSeparator)
public com.google.common.collect.ImmutableList<String> getFlagsForReproducibleBuild(String altCompilationDir, Path currentCellPath)
getFlagsForReproducibleBuild
in interface Compiler
public Optional<com.google.common.collect.ImmutableList<String>> getFlagsForColorDiagnostics()
getFlagsForColorDiagnostics
in interface Compiler
public boolean isArgFileSupported()
isArgFileSupported
in interface Compiler
public com.google.common.collect.ImmutableList<String> getPreArgfileArgs()
getPreArgfileArgs
in interface Compiler
public com.google.common.collect.ImmutableList<String> outputArgs(String outputPath)
outputArgs
in interface Compiler
public com.google.common.collect.ImmutableList<String> outputDependenciesArgs(String outputPath)
outputDependenciesArgs
in interface Compiler
public com.google.common.collect.ImmutableList<String> languageArgs(String inputLanguage)
languageArgs
in interface Compiler
public com.google.common.collect.ImmutableList<String> getPdcFlags()
getPdcFlags
in interface Compiler
public com.google.common.collect.ImmutableList<String> getPicFlags()
getPicFlags
in interface Compiler
public DependencyTrackingMode getDependencyTrackingMode()
getDependencyTrackingMode
in interface Compiler
public boolean shouldSanitizeOutputBinary()
shouldSanitizeOutputBinary
in interface Compiler
public boolean needsToRemoveCompiledFilenamesFromOutput()
needsToRemoveCompiledFilenamesFromOutput
in interface Compiler
public Optional<String> getStderr(ProcessExecutor.Result result)
public boolean getUseUnixPathSeparator()
getUseUnixPathSeparator
in interface Compiler