From 9e0922c26921f32243ab92947096e77ef8c0f56d Mon Sep 17 00:00:00 2001 From: Martin Trojer Date: Wed, 22 Jan 2020 00:42:08 -0800 Subject: [PATCH] [buck] Use project_root as base for compilation data file instead of cwd Reviewed By: dulmarod Differential Revision: D19496545 fbshipit-source-id: 478ea4982 --- infer/src/integration/Driver.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ->