summaryrefslogtreecommitdiff
path: root/src/scalap
diff options
context:
space:
mode:
authormpociecha <michal.pociecha@gmail.com>2014-11-30 23:08:10 +0100
committermpociecha <michal.pociecha@gmail.com>2014-12-05 01:21:04 +0100
commitdfc5c1d7225163994e3bc1cf67ccbee8c4de75fc (patch)
treee3a670ad49afba61837ae747ed378606407a0129 /src/scalap
parent04620a0e2a0cf64f2d33e32007d85afabad5e201 (diff)
downloadscala-dfc5c1d7225163994e3bc1cf67ccbee8c4de75fc.tar.gz
scala-dfc5c1d7225163994e3bc1cf67ccbee8c4de75fc.tar.bz2
scala-dfc5c1d7225163994e3bc1cf67ccbee8c4de75fc.zip
Create possibility to skip flat classpath caching
There's added -YdisableFlatCpCaching option to ScalaSettings which allows user to disable caching of flat representation of classpath elements.
Diffstat (limited to 'src/scalap')
-rw-r--r--src/scalap/scala/tools/scalap/Main.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scalap/scala/tools/scalap/Main.scala b/src/scalap/scala/tools/scalap/Main.scala
index 0e0970db1f..34684fc3e1 100644
--- a/src/scalap/scala/tools/scalap/Main.scala
+++ b/src/scalap/scala/tools/scalap/Main.scala
@@ -145,6 +145,7 @@ object Main extends Main {
val version = "-version"
val classPathImplType = "-YclasspathImpl"
+ val disableFlatClassPathCaching = "-YdisableFlatCpCaching"
val logClassPath = "-Ylog-classpath"
}
@@ -182,6 +183,7 @@ object Main extends Main {
val settings = new Settings()
arguments getArgument opts.classPathImplType foreach settings.YclasspathImpl.tryToSetFromPropertyValue
+ settings.YdisableFlatCpCaching.value = arguments contains opts.disableFlatClassPathCaching
settings.Ylogcp.value = arguments contains opts.logClassPath
val path = createClassPath(cpArg, settings)
@@ -202,8 +204,9 @@ object Main extends Main {
.withOption(opts.help)
.withOptionalArg(opts.classpath)
.withOptionalArg(opts.cp)
- // TODO two temporary, hidden options to be able to test different classpath representations
+ // TODO three temporary, hidden options to be able to test different classpath representations
.withOptionalArg(opts.classPathImplType)
+ .withOption(opts.disableFlatClassPathCaching)
.withOption(opts.logClassPath)
.parse(args)