Force CFFI to front of static initialization order

This commit is contained in:
Joshua Granick
2017-04-26 14:04:27 -07:00
parent 8c56103d33
commit 4b0f765daa
2 changed files with 6 additions and 2 deletions

View File

@@ -111,9 +111,13 @@ package;
}
#if neko
@:noCompletion @:dox(hide) public static function __init__ () {
#if lime_cffi
var init = lime.system.CFFI;
#end
#if neko
// Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164
// since Sys.programPath () isn't available in __init__
var sys_program_path = {
@@ -140,7 +144,6 @@ package;
loader.addPath ("@executable_path/");
}
#end
}