diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-09-24 21:24:44 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-09-24 21:24:44 -0400 |
commit | 23e75433d385abbcf3729a515e6a05bca671e473 (patch) | |
tree | 995e4f29950bef0fa4ca1c99958f32f78d97e9aa | |
parent | 76a32552c440579d40c94cb65642a7d7aa8e872f (diff) | |
download | gem5-23e75433d385abbcf3729a515e6a05bca671e473.tar.xz |
Create build_options/current dir when necessary.
build/SConstruct:
Need to create build_options/current the first time through.
--HG--
extra : convert_revision : 13bf8c69a4a30671283a8b789ed21875b2301f24
-rw-r--r-- | build/SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/SConstruct b/build/SConstruct index d1fa5320c..e7ec87a53 100644 --- a/build/SConstruct +++ b/build/SConstruct @@ -328,6 +328,12 @@ for build_dir in build_dirs: current_options_file = os.path.join('build_options', 'current', build_dir) if os.path.isfile(current_options_file): sticky_opts.files.append(current_options_file) + else: + # if file doesn't exist, make sure at least the directory is there + # so we can create it later + opt_dir = os.path.dirname(current_options_file) + if not os.path.isdir(opt_dir): + os.mkdir(opt_dir) if not sticky_opts.files: print "%s: No options file found in build_options, using defaults." \ % build_dir |