Skip to content

Commit

Permalink
[hxb] apply hxb-times for hxb-lib too
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 2, 2024
1 parent 19d7abf commit 8152dbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/hxb/hxbLib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ open Globals
open Common
open ExtString

class hxb_library file_path = object(self)
class hxb_library file_path hxb_times = object(self)
inherit abstract_hxb_lib
val zip = lazy (Zip.open_in file_path)

Expand All @@ -19,7 +19,7 @@ class hxb_library file_path = object(self)
let close = Timer.timer ["hxblib";"read"] in
List.iter (function
| ({ Zip.filename = "StringPool.hxb" | "StringPool.macro.hxb" as filename} as entry) ->
let reader = new HxbReader.hxb_reader (["hxb";"internal"],"StringPool") (HxbReader.create_hxb_reader_stats()) None true (* TODO: -D hxb-times *) in
let reader = new HxbReader.hxb_reader (["hxb";"internal"],"StringPool") (HxbReader.create_hxb_reader_stats()) None hxb_times in
let zip = Lazy.force zip in
let data = Bytes.unsafe_of_string (Zip.read_entry zip entry) in
ignore(reader#read (new HxbReaderApi.hxb_reader_api_null) data STR);
Expand Down Expand Up @@ -74,4 +74,4 @@ let create_hxb_lib com file_path =
with Not_found ->
failwith ("hxb lib " ^ file_path ^ " not found")
in
new hxb_library file
new hxb_library file (Common.defined com Define.HxbTimes)

0 comments on commit 8152dbe

Please sign in to comment.