diff --git a/tools/oneclick/base/hdl_config.py b/tools/oneclick/base/hdl_config.py index 019365dc0521835e02c15494197ee2d2e93e3044..9e8351c6da25dd43bbdaf0b18364c3845e059fa2 100644 --- a/tools/oneclick/base/hdl_config.py +++ b/tools/oneclick/base/hdl_config.py @@ -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)