diff options
-rw-r--r-- | src/compiler/scala/tools/ant/Scalac.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/ant/Scalac.scala b/src/compiler/scala/tools/ant/Scalac.scala index 7f5573c1bc..ff94efa548 100644 --- a/src/compiler/scala/tools/ant/Scalac.scala +++ b/src/compiler/scala/tools/ant/Scalac.scala @@ -149,6 +149,8 @@ class Scalac extends MatchingTask { * in case of failure. */ private var scalacDebugging: Boolean = false + private var generics: Option[Boolean] = None + /*============================================================================*\ ** Properties setters ** \*============================================================================*/ @@ -329,6 +331,9 @@ class Scalac extends MatchingTask { def setAssemrefs(input: String): Unit = assemrefs = Some(input) + def setGenerics(input: Boolean): Unit = + generics = Some(input) + /*============================================================================*\ ** Properties getters ** \*============================================================================*/ @@ -528,6 +533,7 @@ class Scalac extends MatchingTask { if (!assemname.isEmpty) settings.assemname.value = assemname.get if (!assemrefs.isEmpty) settings.assemrefs.value = assemrefs.get + if (!generics.isEmpty) settings.Xgenerics.value = generics.get log("Scalac params = '" + addParams + "'", Project.MSG_DEBUG) var args = |