diff options
author | 2022-06-14 17:52:50 -0700 | |
---|---|---|
committer | 2022-06-16 10:05:56 -0700 | |
commit | c1bc8e167f59e9946457633059ddeb3f8c387e7a (patch) | |
tree | 241b7db147d18bf4c788075bae09f5b5f2d2779b /build.py | |
parent | 01cef9a272838dca06534312db0d092e0881fa6e (diff) |
Floss: Check for C++ output dir instead of Rust output dir
To determine whether to re-run build script for btadapterd, check the
C++ output dir instead of Rust output dir, otherwise we will always
rebuild btadapterd unconditionally.
Bug: 203696027
Tag: #floss
Test: Manual - cargo build and check that btadapterd is only built once
unless there is a change in C++ output dir
Change-Id: I54fe4293a64d0d1abad3828d12590b63650d4ee6
Diffstat (limited to 'build.py')
-rwxr-xr-x | build.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -249,6 +249,7 @@ class HostBuild(): self.env['RUSTFLAGS'] = self._generate_rustflags() self.env['CXX_ROOT_PATH'] = os.path.join(self.platform_dir, 'bt') self.env['CROS_SYSTEM_API_ROOT'] = os.path.join(self.platform_dir, 'system_api') + self.env['CXX_OUTDIR'] = self._gn_default_output() def run_command(self, target, args, cwd=None, env=None): """ Run command and stream the output. |