Skip to content

Commit 552da36

Browse files
authored
fix: that cannot be built under linux unity (#365)
1 parent 4267aff commit 552da36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/UnityProj/Assets/IFix/Editor/ILFixEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class IFixEditor
6868
//system("mono ifix.exe [args]")
6969
public static void CallIFix(List<string> args)
7070
{
71-
#if UNITY_EDITOR_OSX
71+
#if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
7272
var mono_path = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName),
7373
"../MonoBleedingEdge/bin/mono");
7474
if(!File.Exists(mono_path))
@@ -587,7 +587,7 @@ private static string getCompileArguments(Platform platform, string output)
587587
//TODO: 目前的做法挺繁琐的,需要用户去获取Unity的编译命令文件,更好的做法应该是直接
588588
public static void Compile(string compileArgFile)
589589
{
590-
#if UNITY_EDITOR_OSX
590+
#if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
591591
var monoPath = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName),
592592
"../MonoBleedingEdge/bin/mono");
593593
var mcsPath = Path.Combine(Path.GetDirectoryName(typeof(UnityEngine.Debug).Module.FullyQualifiedName),

0 commit comments

Comments
 (0)