From: Bobby R. Bruce <bbruce@ucdavis.edu>
Date: Wed, 11 Dec 2019 23:47:36 +0000 (-0800)
Subject: scons: Added channel_addr.cc dependency to channel_addr GTest
X-Git-Tag: v19.0.0.0~183
X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ca752c4d9dbaa32d041c42f6524cf1aee95a8f3;p=gem5.git

scons: Added channel_addr.cc dependency to channel_addr GTest

In some circumstances not including channel_addr.cc as a dependency for
the channel_addr.test compilation resulted in a build failure (this was
observed in gem5's Kokoro CI system). This commit fixes this problem.

Change-Id: Ic38a104a1e6bf655fc64158b556e6227d5ac3981
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23603
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
---

diff --git a/src/base/SConscript b/src/base/SConscript
index e2a3215d0..818428ee5 100644
--- a/src/base/SConscript
+++ b/src/base/SConscript
@@ -98,7 +98,7 @@ if env['USE_HDF5']:
 GTest('addr_range.test', 'addr_range.test.cc')
 GTest('addr_range_map.test', 'addr_range_map.test.cc')
 GTest('bitunion.test', 'bitunion.test.cc')
-GTest('channel_addr.test', 'channel_addr.test.cc')
+GTest('channel_addr.test', 'channel_addr.test.cc', 'channel_addr.cc')
 GTest('circlebuf.test', 'circlebuf.test.cc')
 GTest('circular_queue.test', 'circular_queue.test.cc')
 GTest('sat_counter.test', 'sat_counter.test.cc')