summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala
index b1f3154cd6..426f740bb3 100644
--- a/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala
+++ b/src/compiler/scala/tools/nsc/backend/msil/GenMSIL.scala
@@ -448,10 +448,11 @@ abstract class GenMSIL extends SubComponent {
code.Emit(OpCodes.Ret)
}
createTypes()
+ val filename = new File(outDir, assemName + ".msil").getPath()
if (settings.debug.value)
- log("Output path: " + outDir.getPath)
+ log("Output path: " + filename)
try {
- massembly.Save(outDir.getPath)
+ massembly.Save(filename)
val ilasm = Properties.msilILasm
if (ilasm != "") {
val generatedFiles = List.fromArray(massembly.GetGeneratedFiles)
@@ -468,7 +469,7 @@ abstract class GenMSIL extends SubComponent {
}
}
} catch {
- case _: Error => abort("Could not save files in " + outDir.getPath)
+ case _: Error => abort("Could not save .msil files in " + outDir.getPath)
}
}