#NEWLINE# @ classmethod #NEWLINE# def register_options( cls , register ) : #NEWLINE# #INDENT# super ( BaseZincCompile , cls ) . register_options ( register ) #NEWLINE# register ( '--name-hashing' , advanced = True , type = bool , fingerprint = True , help = 'Use zinc name hashing.' ) #NEWLINE# register ( '--whitelisted-args' , advanced = True , type = dict , default = { #NEWLINE# #INDENT# '-S.*' : False , #NEWLINE# '-C.*' : False , #NEWLINE# '-file-filter' : True , #NEWLINE# '-msg-filter' : True , #NEWLINE# #UNINDENT# } , help = "A dict of option regexes that make up pants' supported API for zinc. Options not listed here are subject to change/removal. The value of the dict indicates that an option accepts an argument." ) #NEWLINE# register ( '--incremental' , advanced = True , type = bool , default = True , help = 'When set, zinc will use sub-target incremental compilation, which dramatically improves compile performance while changing large targets. When unset, changed targets will be compiled with an empty output directory, as if after running clean-all.' ) #NEWLINE# register ( '--incremental-caching' , advanced = True , type = bool , help = 'When set, the results of incremental compiles will be written to the cache. This is unset by default, because it is generally a good precaution to cache only clean/cold builds.' ) #NEWLINE# cls . register_jvm_tool ( register , 'zinc' , classpath = [ JarDependency ( 'org.pantsbuild' , 'zinc_2.10' , '0.0.3' ) ] , main = cls . _ZINC_MAIN , custom_rules = [ Shader . exclude_package ( 'scala' , recursive = True ) , Shader . exclude_package ( 'xsbt' , recursive = True ) , Shader . exclude_package ( 'xsbti' , recursive = True ) ] ) #NEWLINE# def sbt_jar( name , **kwargs ) : #NEWLINE# #INDENT# return JarDependency ( org = 'com.typesafe.sbt' , name = name , rev = '0.13.9' , ** kwargs ) #NEWLINE# #UNINDENT# cls . register_jvm_tool ( register , 'compiler-interface' , classpath = [ sbt_jar ( name = 'compiler-interface' , classifier = 'sources' , intransitive = True ) ] ) #NEWLINE# cls . register_jvm_tool ( register , 'sbt-interface' , classpath = [ sbt_jar ( name = 'sbt-interface' , intransitive = True ) ] )