Fix to #define True/False option values as 0/1 in header.

--HG--
extra : convert_revision : 7fbae4816a4d0a5ed942e0ad8afed9464dd1ba11
This commit is contained in:
Steve Reinhardt 2005-09-01 11:35:03 -04:00
parent 23a9102d01
commit 809230bbde

View file

@ -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