Skip to content

Commit de8b62f

Browse files
committed
Set -unsafe on by default.
1 parent 94e7a65 commit de8b62f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

extra/CompilerPlugin/CustomCSharpCompiler.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ private string[] GetAdditionalReferences()
5252
protected override Program StartCompiler()
5353
{
5454
var arguments = new List<string>
55-
{
56-
"-debug",
57-
"-target:library",
58-
"-nowarn:0169",
59-
"-out:" + PrepareFileName(_island._output),
60-
"-define:__UNITY_PROCESSID__" + System.Diagnostics.Process.GetCurrentProcess().Id
61-
};
55+
{
56+
"-debug",
57+
"-target:library",
58+
"-nowarn:0169",
59+
"-unsafe",
60+
"-out:" + PrepareFileName(_island._output),
61+
"-define:__UNITY_PROCESSID__" + System.Diagnostics.Process.GetCurrentProcess().Id
62+
};
6263
foreach (var reference in _island._references)
6364
{
6465
arguments.Add("-r:" + PrepareFileName(reference));
@@ -86,4 +87,4 @@ protected override Program StartCompiler()
8687

8788
return StartCompiler(_island._target, GetCompilerPath(arguments), arguments);
8889
}
89-
}
90+
}

0 commit comments

Comments
 (0)