summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-09-01 11:35:03 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2005-09-01 11:35:03 -0400
commit809230bbde6efc6106d0aefb696b69150bb66541 (patch)
tree72c7c6b5c3b7217938ab1caebcbc237f17c1b6c5 /build
parent23a9102d01782f3caea6e10dee7320f4fe954b23 (diff)
downloadgem5-809230bbde6efc6106d0aefb696b69150bb66541.tar.xz
Fix to #define True/False option values as 0/1 in header.
--HG-- extra : convert_revision : 7fbae4816a4d0a5ed942e0ad8afed9464dd1ba11
Diffstat (limited to 'build')
-rw-r--r--build/SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/SConstruct b/build/SConstruct
index 5dd847ba4..b7e769e15 100644
--- a/build/SConstruct
+++ b/build/SConstruct
@@ -223,7 +223,7 @@ env = conf.Finish()
# The source operand is a Value node containing the value of the option.
def build_config_file(target, source, env, option):
f = file(str(target[0]), 'w')
- print >> f, '#define', option, source[0]
+ print >> f, '#define', option, int(eval(str(source[0])))
f.close()
return None