Skip to content

Commit a64bc1b

Browse files
committed
Improve info message in Clojure.Compile to mention framework vs core
1 parent 7b497e3 commit a64bc1b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Clojure/Clojure.Compile/Compile.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ static void Main(string[] args)
5353

5454
#if NETFRAMEWORK
5555
Console.WriteLine("BootstrapCompile: .NET Framework detected.");
56+
var which = "Framework";
5657
#else
5758
Console.WriteLine("BootstrapCompile: .NET Core detected.");
59+
var which = "Core";
5860
#endif
5961

6062
try
@@ -71,7 +73,7 @@ static void Main(string[] args)
7173
{
7274
sw.Reset();
7375
sw.Start();
74-
outTW.Write("Compiling {0} to {1}", lib, path);
76+
outTW.Write($"{which}: Compiling {lib} to {path}");
7577
outTW.Flush();
7678
Compiler.CompileVar.invoke(Symbol.intern(lib));
7779
sw.Stop();

Clojure/Clojure/CljCompiler/Compiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ public static object eval(object form)
12461246
eval(RT.first(s));
12471247
return eval(RT.first(s));
12481248
}
1249-
else if ( (form is IType) ||
1249+
else if ((form is IType) ||
12501250
(form is IPersistentCollection && !(RT.first(form) is Symbol symbol && symbol.Name.StartsWith("def"))))
12511251
{
12521252
ObjExpr objx = (ObjExpr)Analyze(pconExpr, RT.list(FnSym, PersistentVector.EMPTY, form), "eval" + RT.nextID());

0 commit comments

Comments
 (0)