summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
author Sonny Sasaka <sonnysasaka@chromium.org> 2021-03-25 05:39:20 -0700
committer Abhishek Pandit-Subedi <abhishekpandit@google.com> 2021-04-07 04:53:04 +0000
commit706ec3b0cbff292a3fe1742f0afcad4ffdcf2552 (patch)
tree6275769b69f57c657b31dcca454416693da489c3 /build.py
parent87d41f5567cf86285b3269aae3a9d4dca594b3fc (diff)
Guard printing PKG_CONFIG_PATH in build.py
Bug: 176846220 Tag: #floss Test: atest --host bluetooth_test_gd Change-Id: Iba0c739a07bcfa7256ea624e2391d5cee016d2de
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.py b/build.py
index 1ece6ceef5..27332cf934 100755
--- a/build.py
+++ b/build.py
@@ -288,7 +288,8 @@ class HostBuild():
self._gn_default_output(),
]
- print('DEBUG: PKG_CONFIG_PATH is', self.env['PKG_CONFIG_PATH'])
+ if 'PKG_CONFIG_PATH' in self.env:
+ print('DEBUG: PKG_CONFIG_PATH is', self.env['PKG_CONFIG_PATH'])
self.run_command('configure', gn_args)