[offset-tool] fix assignment for GeniOS
authorBernhard Urban <bernhard.urban@xamarin.com>
Wed, 19 Jul 2017 13:33:00 +0000 (15:33 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Wed, 19 Jul 2017 13:40:04 +0000 (15:40 +0200)
fixes this compilation error

MonoAotOffsetsDumper.cs(279,59): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

tools/offsets-tool/MonoAotOffsetsDumper.cs

index 94622793145f8d5ff85b0a5918b04cc3797ef81a..199b974559eb1b26ef3b42a5408adb544fe475ff 100644 (file)
@@ -276,7 +276,7 @@ namespace CppSharp
                 { "android-ndk=", "Path to Android NDK", v => AndroidNdkPath = v },
                 { "targetdir=", "Path to the directory containing the mono build", v =>TargetDir = v },
                 { "mono=", "include directory", v => MonoDir = v },
-                { "gen-ios", "generate iOS offsets", v => GenIOS != null },
+                { "gen-ios", "generate iOS offsets", v => GenIOS = v != null },
                 { "h|help",  "show this message and exit",  v => showHelp = v != null },
             };