Prevent scons crash if config.h.dummy is absent.
This commit is contained in:
parent
33d5ac2cd3
commit
4667b1fcc4
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ env.Precious(uninstall)
|
|||
#
|
||||
config_h_re = re.compile(r"^.*#define\s*(\S*)\s*\"(\S*)\".*$", re.MULTILINE)
|
||||
build_config = dict( config_h_re.findall(File("config.h.dummy").get_contents()) )
|
||||
env["version"] = build_config["PACKAGE_VERSION"]
|
||||
env["version"] = build_config.get("PACKAGE_VERSION")
|
||||
if 'dist' in COMMAND_LINE_TARGETS: # Speedup, the manifest is expensive
|
||||
def dist_manifest():
|
||||
"Get an argument list suitable for passing to a distribution archiver."
|
||||
|
|
Loading…
Add table
Reference in a new issue