SConscript (10130:476aeb6b51b0) SConscript (11294:a368064a2ab5)
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 63 unchanged lines hidden (view full) ---

72
73# DRAMSim2 violates some of the warning flags used by gem5, so
74# we explicitly disable them here
75dramenv = main.Clone()
76dramenv.Append(CCFLAGS=['-Wno-unused-value'])
77
78# If we are using clang, there are more flags to disable
79if main['CLANG']:
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 63 unchanged lines hidden (view full) ---

72
73# DRAMSim2 violates some of the warning flags used by gem5, so
74# we explicitly disable them here
75dramenv = main.Clone()
76dramenv.Append(CCFLAGS=['-Wno-unused-value'])
77
78# If we are using clang, there are more flags to disable
79if main['CLANG']:
80 dramenv.Append(CCFLAGS=['-Wno-unused-private-field'])
80 dramenv.Append(CCFLAGS=['-Wno-unused-private-field',
81 '-Wno-tautological-undefined-compare'])
81
82# Tell DRAMSim2 to not store any data as this is already covered by
83# the wrapper
84dramenv.Append(CCFLAGS=['-DNO_STORAGE'])
85
86dramenv.Library('dramsim2', [dramenv.SharedObject(f) for f in dram_files])
87
88main.Prepend(CPPPATH=Dir('.'))
89main.Append(LIBS=['dramsim2'])
90main.Prepend(LIBPATH=[Dir('.')])
82
83# Tell DRAMSim2 to not store any data as this is already covered by
84# the wrapper
85dramenv.Append(CCFLAGS=['-DNO_STORAGE'])
86
87dramenv.Library('dramsim2', [dramenv.SharedObject(f) for f in dram_files])
88
89main.Prepend(CPPPATH=Dir('.'))
90main.Append(LIBS=['dramsim2'])
91main.Prepend(LIBPATH=[Dir('.')])