diff --git a/infer/src/integration/Driver.ml b/infer/src/integration/Driver.ml index 41c7e0c48..bdd3a4ca7 100644 --- a/infer/src/integration/Driver.ml +++ b/infer/src/integration/Driver.ml @@ -176,7 +176,7 @@ let check_xcpretty () = let capture_with_compilation_database db_files = - let root = Unix.getcwd () in + let root = Config.project_root in Config.clang_compilation_dbs := List.map db_files ~f:(function | `Escaped fname ->