Browse Source

check is64 for ndll

Nicolas Cannasse 13 years ago
parent
commit
918486eb5c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/tools/haxelib/Main.hx

+ 2 - 0
std/tools/haxelib/Main.hx

@@ -747,6 +747,8 @@ class Main {
 			var ndir = dir + "ndll";
 			var ndir = dir + "ndll";
 			if( sys.FileSystem.exists(ndir) ) {
 			if( sys.FileSystem.exists(ndir) ) {
 				var sysdir = ndir+"/"+Sys.systemName();
 				var sysdir = ndir+"/"+Sys.systemName();
+				var is64 = neko.Lib.load("std", "sys_is64", 0)();
+				if( is64 ) sysdir += "64";
 				if( !sys.FileSystem.exists(sysdir) )
 				if( !sys.FileSystem.exists(sysdir) )
 					throw "Library "+d.project+" version "+d.version+" does not have a neko dll for your system";
 					throw "Library "+d.project+" version "+d.version+" does not have a neko dll for your system";
 				Sys.println("-L "+pdir+"ndll/");
 				Sys.println("-L "+pdir+"ndll/");