ports/lang/haxe/patches/patch-src_compiler_main_ml

14 lines
647 B
Text

path to hashlink version
Index: src/compiler/main.ml
--- src/compiler/main.ml.orig
+++ src/compiler/main.ml
@@ -273,7 +273,7 @@ module Initialize = struct
"python"
| Hl ->
add_std "hl";
- if not (Common.raw_defined com "hl_ver") then Define.raw_define_value com.defines "hl_ver" (try Std.input_file (Common.find_file com "hl/hl_version") with Not_found -> assert false);
+ if not (Common.raw_defined com "hl_ver") then Define.raw_define_value com.defines "hl_ver" (try Std.input_file (Common.find_file com "${PREFIX}/share/haxe/std/hl/hl_version") with Not_found -> assert false);
"hl"
| Eval ->
add_std "eval";