[mcs] Accept and ignore /debug:portable option
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 4 Jan 2017 22:45:27 +0000 (23:45 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 4 Jan 2017 22:46:03 +0000 (23:46 +0100)
We'll just generate a normal .mdb instead.

Decided not to update the help text since
technically we don't support generating a ppdb.

mcs/mcs/settings.cs

index af5febe7cf6b292c1e706ad9caced3a407ab2c0f..7d4d4d54d039826f748174b024b5b86f4ec6d388 100644 (file)
@@ -934,7 +934,7 @@ namespace Mono.CSharp {
                                return ParseResult.Success;
 
                        case "/debug":
-                               if (value.Equals ("full", StringComparison.OrdinalIgnoreCase) || value.Equals ("pdbonly", StringComparison.OrdinalIgnoreCase) || idx < 0) {
+                               if (value.Equals ("full", StringComparison.OrdinalIgnoreCase) || value.Equals ("pdbonly", StringComparison.OrdinalIgnoreCase) || value.Equals ("portable", StringComparison.OrdinalIgnoreCase) || idx < 0) {
                                        settings.GenerateDebugInfo = true;
                                        return ParseResult.Success;
                                }