PS: Add /unsafe compiler flag

This commit is contained in:
Katy Coe
2019-11-04 23:11:51 +01:00
parent 5754e50c90
commit 31b065e148

View File

@@ -67,7 +67,7 @@ md $asm, $bin 2>&1 >$null
# Compile all .cs files in TestSources # Compile all .cs files in TestSources
echo "Compiling source code..." echo "Compiling source code..."
gci $src | % { & $csc "/t:library" "/nologo" "/out:$asm/$($_.BaseName).dll" "$src/$_" } gci $src | % { & $csc "/t:library" "/nologo" "/unsafe" "/out:$asm/$($_.BaseName).dll" "$src/$_" }
# Run IL2CPP on all generated assemblies for both x86 and ARM # Run IL2CPP on all generated assemblies for both x86 and ARM
# Earlier builds of Unity included mscorlib.dll automatically; in current versions we must specify its location # Earlier builds of Unity included mscorlib.dll automatically; in current versions we must specify its location