diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-13 23:03:04 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-13 23:03:04 -0500 |
commit | 57482491c5eeb3e52f2f29f5f56040445004cb43 (patch) | |
tree | 8169e014e3ab26cf3128168f6c0a625f691e8e4e /SConscript | |
parent | b78d7c2f16dac11ed468de45a088a362605c6493 (diff) | |
download | gem5-57482491c5eeb3e52f2f29f5f56040445004cb43.tar.xz |
build mysql version if libraries exist
add dprintf on alignment faults
fix RR benchmark rcS script name
Add Dual test without rcS script
Update Monet to be closer to the real thing
Fix p4/monet configs
Add a way to read the DRIR register with at 32bit access for validation
SConscript:
build/SConstruct:
always use mysql if the libraries are installed
arch/alpha/alpha_memory.cc:
Add a DPRINTF to print alignment faults when they happen
dev/tsunami_cchip.cc:
Add a way to read the DRIR for validation.
--HG--
extra : convert_revision : 8c112c958f36b785390c46e70a889a79c6bea015
Diffstat (limited to 'SConscript')
-rw-r--r-- | SConscript | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/SConscript b/SConscript index 187edadff..e49a507b8 100644 --- a/SConscript +++ b/SConscript @@ -28,6 +28,7 @@ import os import sys +from os.path import isdir # This file defines how to build a particular configuration of M5 # based on variable settings in the 'env' build environment. @@ -335,18 +336,16 @@ else: extra_libraries = [] env.Append(LIBS=['z']) -if env['USE_MYSQL']: +if isdir('/usr/lib64/mysql') or isdir('/usr/lib/mysql') or \ + isdir('/usr/local/lib/mysql'): + env.Append(LIBPATH=['/usr/lib64/mysql', '/usr/local/lib/mysql/', + '/usr/lib/mysql']) + env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql']) sources += mysql_sources env.Append(CPPDEFINES = 'USE_MYSQL') env.Append(CPPDEFINES = 'STATS_BINNING') - env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql']) - if os.path.isdir('/usr/lib64'): - env.Append(LIBPATH=['/usr/lib64/mysql']) - else: - env.Append(LIBPATH=['/usr/lib/mysql/']) env.Append(LIBS=['mysqlclient']) - ################################################### # # Special build rules. |