systemc: Only build python utility code if python is enabled.
authorGabe Black <gabeblack@google.com>
Wed, 7 Nov 2018 08:17:42 +0000 (00:17 -0800)
committerGabe Black <gabeblack@google.com>
Fri, 9 Nov 2018 01:27:20 +0000 (01:27 +0000)
Change-Id: I58054ddd0d5ef0dbee18028c4218e7418347f959
Reviewed-on: https://gem5-review.googlesource.com/c/13979
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/systemc/core/SConscript

index 33e6aafe7fbf21644e606ee4122f2a63d217ef1c..536c181e5cd3322ed641304011f2ac813ed71426 100644 (file)
@@ -38,7 +38,6 @@ if env['USE_SYSTEMC']:
     Source('object.cc')
     Source('port.cc')
     Source('process.cc')
-    Source('python.cc')
     Source('scheduler.cc')
     Source('sched_event.cc')
     Source('sensitivity.cc')
@@ -63,4 +62,5 @@ if env['USE_SYSTEMC']:
     Source('sc_time.cc')
 
     if env['USE_PYTHON']:
+        Source('python.cc')
         Source('sc_main_python.cc')