summaryrefslogtreecommitdiff
path: root/src/mem/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/SConscript')
-rw-r--r--src/mem/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mem/SConscript b/src/mem/SConscript
index 87498d21d..21335a709 100644
--- a/src/mem/SConscript
+++ b/src/mem/SConscript
@@ -34,7 +34,9 @@ SimObject('Bridge.py')
SimObject('Bus.py')
SimObject('MemObject.py')
SimObject('PhysicalMemory.py')
-SimObject('RubyMemory.py')
+
+if env['RUBY']:
+ SimObject('RubyMemory.py')
Source('bridge.cc')
Source('bus.cc')
@@ -45,7 +47,9 @@ Source('physical.cc')
Source('port.cc')
Source('tport.cc')
Source('mport.cc')
-Source('rubymem.cc')
+
+if env['RUBY']:
+ Source('rubymem.cc')
if env['FULL_SYSTEM']:
Source('vport.cc')