Skip to content

Commit 7fefc4b

Browse files
committed
dump path
1 parent dbaaf26 commit 7fefc4b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

analysis/src/FindFiles.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,18 @@ let findProjectFiles ~namespace ~path ~sourceDirectories ~libBs =
131131
in
132132
dirs
133133
|> ifDebug true "Source directories" (fun s ->
134-
s |> StringSet.elements |> String.concat " - ");
134+
s |> StringSet.elements |> List.map Utils.dumpPath
135+
|> String.concat " - ");
135136
files
136137
|> ifDebug true "Source files found" (fun s ->
137-
s |> StringSet.elements |> String.concat " : ");
138+
s |> StringSet.elements |> List.map Utils.dumpPath
139+
|> String.concat " : ");
138140

139141
let interfaces = Hashtbl.create 100 in
140142
files
141143
|> StringSet.iter (fun path ->
142144
if isInterface path then (
143-
Log.log ("Adding intf " ^ path);
145+
Log.log ("Adding intf " ^ Utils.dumpPath path);
144146
Hashtbl.replace interfaces (getName path) path));
145147

146148
let normals =
@@ -219,7 +221,7 @@ let findDependencyFiles base config =
219221
match BuildSystem.getLibBs path with
220222
| None -> None
221223
| Some libBs ->
222-
Log.log ("Compiled base: " ^ libBs);
224+
Log.log ("Compiled base: " ^ Utils.dumpPath libBs);
223225
let compiledDirectories =
224226
sourceDirectories |> List.map (Filename.concat libBs)
225227
in

analysis/src/Utils.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,5 @@ let filterMap f =
7373
match f x with None -> aux accu l | Some v -> aux (v :: accu) l)
7474
in
7575
aux []
76+
77+
let dumpPath path = Str.global_replace (Str.regexp_string "\\") "/" path

0 commit comments

Comments
 (0)