Skip to content

Instantly share code, notes, and snippets.

@paulp
Created June 30, 2012 17:20
Show Gist options
  • Save paulp/3024671 to your computer and use it in GitHub Desktop.
Save paulp/3024671 to your computer and use it in GitHub Desktop.
14a15
> -feature Emit warning and location for usages of features that should be imported explicitly.
18a20
> -language:<feature> Enable one or more language features.
25c27
< -target:<target> Target platform for object files. (jvm-1.5,msil) default:jvm-1.5
---
> -target:<target> Target platform for object files. (jvm-1.5,jvm-1.5-asm,jvm-1.6,jvm-1.7,msil) default:jvm-1.5
47c49
< <phase> means one or a list of:
---
> <phases> means one or a comma-separated list of:
62a65
> -Xfull-lubs Retains pre 2.10 behavior of less aggressive truncation of least upper bounds.
65a69,71
> -Xlog-free-terms Print a message when reification creates a free term.
> -Xlog-free-types Print a message when reification resorts to generating a free type.
> -Xlog-implicit-conversions Print a message whenever an implicit conversion is inserted.
66a73,77
> -Xlog-reflective-calls Print a message when a reflective method call is generated
> -Xmacro-fallback-classpath <path> Classpath to load macros implementations from if they cannot be loaded from library classpath.
> -Xmacro-primary-classpath <path> Classpath to load macros implementations from, defaults to compilation classpath (aka "library classpath".
> -Xmacro-settings:<option> Custom settings for macros.
> -Xmain-class <path> Class for manifest's Main-Class entry (only useful with -d <jar>)
69a81
> -Xno-patmat-analysis Don't perform exhaustivity/unreachability analysis. Also, ignore @switch annotation.
71a84
> -Xoldpatmat Use the pre-2.10 pattern matcher. Otherwise, the 'virtualizing' pattern matcher is used in 2.10.
77,78c90,91
< -Xprint:<phase> Print out program after <phase>.
< -Xprint-icode Log internal icode to *.icode files.
---
> -Xprint:<phases> Print out program after <phases>
> -Xprint-icode[:phases] Log internal icode to *.icode files after <phases> (default: icode)
89c102
< -Xverify Verify generic signatures in generated bytecode.
---
> -Xverify Verify generic signatures in generated bytecode (asm backend only.)
97c110
< <phase> means one or a list of:
---
> <phases> means one or a comma-separated list of:
104,105c117,118
< -Ybrowse:<phase> Browse the abstract syntax tree after <phase>.
< -Ycheck:<phase> Check the tree at the end of <phase>.
---
> -Ybrowse:<phases> Browse the abstract syntax tree after <phases>
> -Ycheck:<phases> Check the tree at the end of <phases>
110c123,124
< -Ydependent-method-types Allow dependent method types.
---
> -Ydump-classes <dir> Dump the generated bytecode to .class files (useful for reflective compilation that utilizes in-memory classloaders).
> -Yeta-expand-keeps-star Eta-expand varargs methods to T* rather than Seq[T]. This is a temporary option to ease transition.
113a128,130
> -Yinline-handlers Perform exception handler inlining when possible.
> -Yinline-warnings Emit inlining warnings. (Normally surpressed due to high volume)
> -Yinvalidate <classpath-entry> Invalidate classpath entry before run
115c132
< -Ylog:<phase> Log operations during <phase>.
---
> -Ylog:<phases> Log operations during <phases>
116a134,136
> -Ymacro-debug-lite Trace essential macro-related activities.
> -Ymacro-debug-verbose Trace all macro-related activities: compilation, generation of synthetics, classloading, expansion, exceptions.
> -Yno-adapted-args Do not adapt an argument list (either by inserting () or creating a tuple) to match the receiver.
119c139,140
< -Yno-imports Compile without any implicit imports.
---
> -Yno-imports Compile without importing scala.*, java.lang.*, or Predef.
> -Yno-predef Compile without importing Predef.
123c144,145
< -Ypmat-naive Desugar matches as naively as possible.
---
> -Yoverride-objects Allow member objects to be overridden.
> -Yoverride-vars Allow vars to be overridden.
129,131d150
< -Yprofile:<phase> (Requires jvm -agentpath to contain yjgpagent) Profile CPU usage of given phases. <phase>.
< -Yprofile-class <class> Name of profiler class.
< -Yprofile-memory Profile memory, get heap snapshot after each compiler run (requires yjpagent, see above).
133a153
> -Yreify-copypaste Dump the reified trees in copypasteable representation.
136d155
< -Yrich-exceptions Fancier exceptions. Set source search path with -Dscala.control.sourcepath
138c157,158
< -Yshow:<phase> (Requires -Xshow-class or -Xshow-object) Show after <phase>.
---
> -Yshow:<phases> (Requires -Xshow-class or -Xshow-object) Show after <phases>
> -Yshow-symkinds Print abbreviated symbol kinds next to symbol names.
140,141c160,163
< -Yshow-trees (Requires -Xprint:) Print detailed ASTs.
< -Yskip:<phase> Skip <phase>.
---
> -Yshow-trees (Requires -Xprint:) Print detailed ASTs in formatted form.
> -Yshow-trees-compact (Requires -Xprint:) Print detailed ASTs in compact form.
> -Yshow-trees-stringified (Requires -Xprint:) Print stringifications along with detailed ASTs.
> -Yskip:<phases> Skip <phases>
143,144c165,166
< -Ystop-after:<phase> Stop after given phase <phase>.
< -Ystop-before:<phase> Stop before given phase <phase>.
---
> -Ystop-after:<phases> Stop after <phases>
> -Ystop-before:<phases> Stop before <phases>
145a168
> -Ywarn-adapted-args Warn if an argument list is modified to match the receiver.
160a184
> -Yissue-debug Print stack traces when a context issues an error.
161a186
> -Ypos-debug Trace position validation.
162a188
> -Yreify-debug Trace reification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment