![]() opt:l:defaultĮnable default optimizations: unreachable-code. Takes precedence: -opt:l:none,+box-unbox / -opt:l:none -opt:box-unbox don`t enable box-unbox. Inline method invocations according to -Yopt-inline-heuristics and -opt-inline-from. opt:allow-skip-class-loadingĪllow optimizations that can skip or delay class loading. opt:assume-modules-non-nullĪssume loading a module never results in null (happens if the module is accessed in its super constructor). opt:allow-skip-core-module-initĪllow eliminating unused module loads for core modules of the standard library (e.g., Predef, ClassTag). Rewrite closure invocations to the implementation method. Track nullness / non-nullness of local variables and apply optimizations. opt:box-unboxĮliminate box-unbox pairs within the same method (also tuples, xRefs, value class instances). opt:redundant-castsĮliminate redundant casts using a type propagation analysis. opt:copy-propagationĮliminate redundant local variables and unused values (including closures). opt:compact-localsĮliminate empty slots in the sequence of local variables. Simplify branching instructions, eliminate unnecessary ones. opt:OPTIMIZATION1,OPTIMIZATION2Įnable optimizations -opt:unreachable-codeĮliminate unreachable code, exception handlers guarding no instructions, redundant metadata (debug information, line numbers). language:FEATURE1,FEATURE2Įnable or disable language features -language:dynamicsĪllow direct or indirect subclasses of scala.Dynamic -language:existentialsĮxistential types (besides wildcard types) can be written and inferred -language:higherKindsĪllow higher-kinded types -language:implicitConversionsĪllow definition of implicit functions called views -language:postfixOpsĪllow postfix operator notation, such as 1 to 10 toList (not recommended) -language:reflectiveCallsĪllow reflective access to members of structural types -language:experimental.macrosĪllow macro definition (besides implementation and application) -no-specializationĭo not use the boot classpath for the scala jars. Print a synopsis of standard options -javabootclasspath PATH g:none -g:source -g:line -g:vars -g:notailcalls -help featureĮmit warning and location for usages of features that should be imported explicitly. Override location of installed extensions. Specify character encoding used by source files.Įxplain type errors in more detail. classpath PATHĮmit warning and location for usages of deprecated APIs. Override location of bootstrap class files. Werrorįail the compilation if there are any warnings. Pass flag directly to the runtime system. Pass -Dproperty=value directly to the runtime system. Standard SettingsĪ set of standard options that are supported on the current development environment and will be supported in future releases. Normally the last option will have a trailing comma so that git diff is a bit cleaner when options are added. The convention is always to append to the setting with ++= and to supply one option per line. ScalacOptions ++= Seq ( // use ++= to add to existing options "-encoding", "utf8", // if an option takes an arg, supply it on the same line "-feature", // then put the next option on a new line for easy editing "-language:implicitConversions", "-language:existentials", "-unchecked", "-Werror", "-Xlint", // exploit "trailing comma" syntax so you can add an option without editing this line ) // for "trailing comma", the closing paren must be on the next line
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |