Browse Source

linux modern and legacy mono detection

JimMarlowe 8 years ago
parent
commit
2f1efeffad
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Build/Scripts/BuildConfig.js

+ 4 - 1
Build/Scripts/BuildConfig.js

@@ -45,7 +45,10 @@ function processOptions(config) {
             if ( spawnSync)
                 config["with-atomicnet"] = spawnSync("which", ["xbuild"]).status == 1 ? false : true;
         } else if (os.platform() == "linux") {  // see if xbuild is available on linux
-            config["with-atomicnet"] = programFileExists('/usr/bin/xbuild') && programDirectoryExists('/usr/bin/mono/');
+            var hasXbuild = programFileExists('/usr/bin/xbuild');
+            var hasMonoFile = programFileExists('/usr/bin/mono');
+            var hasMonoDir = programDirectoryExists('/usr/bin/mono/');
+            config["with-atomicnet"] = hasXbuild && ( hasMonoFile || hasMonoDir );
         }
 	}