From: Steve Reinhardt Date: Thu, 1 Sep 2005 15:35:03 +0000 (-0400) Subject: Fix to #define True/False option values as 0/1 in header. X-Git-Tag: m5_1.1~31 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=809230bbde6efc6106d0aefb696b69150bb66541;p=gem5.git Fix to #define True/False option values as 0/1 in header. --HG-- extra : convert_revision : 7fbae4816a4d0a5ed942e0ad8afed9464dd1ba11 --- 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