Skip to content
Snippets Groups Projects
Commit 5fee8ae4 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

100 j) the build_dir key now must specify a build directory.diff

parent c4a331e5
No related branches found
No related tags found
No related merge requests found
......@@ -198,12 +198,11 @@ class HdlConfig:
build_subdir = self.tool.get_key_values(tool_name_key)
build_dirs = []
for lib_dict in cm.listify(lib_dicts):
lib_name = lib_dict['hdl_lib_name']
build_dir = os.path.expandvars(self.libs.get_key_values(build_dir_key, lib_dict))
if build_dir=='':
lib_path = self.libs.get_filePath(lib_dict)
build_dirs.append(os.path.join(lib_path, build_subdir)) # local build directory in HDL library directory
sys.exit('Error : The build_dir key in %s must specify a build directory (default to local build directory within the HDL library directory is not supported)' % lib_name)
else:
lib_name = lib_dict['hdl_lib_name']
build_dirs.append(os.path.join(build_dir, build_subdir, lib_name)) # central build cdirectory
return cm.unlistify(build_dirs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment