Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests/TestCasesRunner/TestCaseCompiler.cs')
-rw-r--r--test/Mono.Linker.Tests/TestCasesRunner/TestCaseCompiler.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/TestCaseCompiler.cs b/test/Mono.Linker.Tests/TestCasesRunner/TestCaseCompiler.cs
index 51d534be4..e41c2b8e7 100644
--- a/test/Mono.Linker.Tests/TestCasesRunner/TestCaseCompiler.cs
+++ b/test/Mono.Linker.Tests/TestCasesRunner/TestCaseCompiler.cs
@@ -1,4 +1,4 @@
-// Copyright (c) .NET Foundation and contributors. All rights reserved.
+// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
@@ -251,6 +251,9 @@ namespace Mono.Linker.Tests.TestCasesRunner
case "/optimize+":
compilationOptions = compilationOptions.WithOptimizationLevel (OptimizationLevel.Release);
break;
+ case "/optimize-":
+ compilationOptions = compilationOptions.WithOptimizationLevel (OptimizationLevel.Debug);
+ break;
case "/debug:full":
case "/debug:pdbonly":
// Use platform's default debug info. This behavior is the same as csc.
@@ -267,7 +270,14 @@ namespace Mono.Linker.Tests.TestCasesRunner
case "/langversion:7.3":
languageVersion = LanguageVersion.CSharp7_3;
break;
-
+ default:
+ var splitIndex = option.IndexOf (":");
+ if (splitIndex != -1 && option[..splitIndex] == "/main") {
+ var mainTypeName = option[(splitIndex + 1)..];
+ compilationOptions = compilationOptions.WithMainTypeName (mainTypeName);
+ break;
+ }
+ throw new NotImplementedException (option);
}
}
}