summaryrefslogtreecommitdiff
path: root/ext/dramsim2
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-03-23 11:11:42 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-03-23 11:11:42 -0400
commit7fc4d14699cbec2bd588ff857a10390bdc2f4d5f (patch)
treea6024171bc625a93d0a638904bf56e66b48394b9 /ext/dramsim2
parent548d47ea2c6f53de2daad78db3187efaf3fbd692 (diff)
downloadgem5-7fc4d14699cbec2bd588ff857a10390bdc2f4d5f.tar.xz
ext: Fix typo in DRAMSim2 SConscript
This patch fixes a typo in the SConscript which caused the DRAMSim2 sources to be built without the appropriate flags.
Diffstat (limited to 'ext/dramsim2')
-rw-r--r--ext/dramsim2/SConscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/dramsim2/SConscript b/ext/dramsim2/SConscript
index 23ba55e52..f7053c976 100644
--- a/ext/dramsim2/SConscript
+++ b/ext/dramsim2/SConscript
@@ -75,11 +75,15 @@ DRAMFile('Transaction.cpp')
dramenv = main.Clone()
dramenv.Append(CCFLAGS=['-Wno-unused-value'])
+# If we are using clang, there are more flags to disable
+if main['CLANG']:
+ dramenv.Append(CCFLAGS=['-Wno-unused-private-field'])
+
# Tell DRAMSim2 to not store any data as this is already covered by
# the wrapper
dramenv.Append(CCFLAGS=['-DNO_STORAGE'])
-dramenv.Library('dramsim2', [main.SharedObject(f) for f in dram_files])
+dramenv.Library('dramsim2', [dramenv.SharedObject(f) for f in dram_files])
main.Prepend(CPPPATH=Dir('.'))
main.Append(LIBS=['dramsim2'])