Skip to content

Commit

Permalink
expand include for all include paths; normalize file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nikswamy committed Jan 20, 2025
1 parent 00bf851 commit 4b63408
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/basic/FStarC.Find.fst
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,17 @@ let include_path () =
Options.include_ () |> expand_include_ds
in
let cmd_line_file_dirs =
Options.file_list() |> List.map (fun f -> BU.normalize_file_path <| BU.dirname f)
Options.file_list() |>
List.map (fun f -> BU.normalize_file_path <| BU.dirname f) |>
expand_include_ds
in
let cwd =
if BU.for_some (fun f -> BU.basename f = f) (Options.file_list ())
then [] // we already have . in the path
else expand_include_d "."
in
let cwd = expand_include_d "." |> List.map BU.normalize_file_path in
cache_dir @ lib_paths () @ include_paths @ cwd @ cmd_line_file_dirs
|> List.map BU.normalize_file_path
let do_find (paths : list string) (filename : string) : option string =
if BU.is_path_absolute filename then
Expand Down

0 comments on commit 4b63408

Please sign in to comment.