From c2dec89d0d9758bcbb2457a04f4bf49d5bf4731c Mon Sep 17 00:00:00 2001 From: Jian Cai Date: Thu, 16 Jan 2020 16:12:34 -0800 Subject: compiler_wrapper: add python search path Exporting BISECT_STAGE to POPULATE_GOOD currently makes the wrapper fail to build any files with the error message of "ModuleNotFoundError: No module named 'bisect_driver'". This patch fixes the issue by adding search path for bisect_driver.py explicitly. BUG=chromium:1042452 TEST=verified locally. Change-Id: I7c73459b377d9011c7087a9e241db378ffb216e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2003947 Tested-by: Jian Cai Reviewed-by: Manoj Gupta Reviewed-by: George Burgess --- compiler_wrapper/testdata/cros_clang_host_golden/bisect.json | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compiler_wrapper/testdata/cros_clang_host_golden/bisect.json') diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json b/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json index 5920a365..ad4feac3 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json @@ -39,6 +39,9 @@ "-Wno-unknown-warning-option", "main.cc", "-Wno-implicit-int-float-conversion" + ], + "env_updates": [ + "PYTHONPATH=/media/storage/jiancai/chromeos/src/third_party/toolchain-utils/compiler_wrapper" ] } } @@ -85,6 +88,9 @@ "-Wno-unknown-warning-option", "main.cc", "-Wno-implicit-int-float-conversion" + ], + "env_updates": [ + "PYTHONPATH=/media/storage/jiancai/chromeos/src/third_party/toolchain-utils/compiler_wrapper" ] } } @@ -134,6 +140,9 @@ "-Wno-unknown-warning-option", "main.cc", "-Wno-implicit-int-float-conversion" + ], + "env_updates": [ + "PYTHONPATH=/media/storage/jiancai/chromeos/src/third_party/toolchain-utils/compiler_wrapper" ] }, "stdout": "somemessage", -- cgit v1.2.3