Class HaskellLinkRule

    • Constructor Detail

      • HaskellLinkRule

        public HaskellLinkRule​(BuildTarget buildTarget,
                               ProjectFilesystem projectFilesystem,
                               BuildRuleParams buildRuleParams,
                               Tool linker,
                               Path outputPath,
                               com.google.common.collect.ImmutableList<Arg> args,
                               com.google.common.collect.ImmutableList<Arg> linkerArgs,
                               boolean cacheable,
                               boolean useArgsfile)
    • Method Detail

      • getSourcePathToOutput

        public SourcePath getSourcePathToOutput()
      • isCacheable

        public boolean isCacheable()
        Description copied from interface: BuildRule
        Whether this BuildRule can be cached.

        Uncached build rules are never written out to cache, never read from cache, and does not count in cache statistics. This rule is useful for artifacts which cannot be easily normalized.

        Uncached rules are not always rebuilt, however, as long as the existing on-disk representation is up to date. This means that these rules can take advantage of SupportsInputBasedRuleKey to prevent rebuilding.

        Specified by:
        isCacheable in interface BuildEngineAction
        Specified by:
        isCacheable in interface BuildRule
        Overrides:
        isCacheable in class AbstractBuildRule