From 47f3a324e4cce547d133afa2a3c4df6274558386 Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Tue, 28 Apr 2015 12:42:58 +0000
Subject: [PATCH] Corrected reading modelsim_search_libraries from hdltool.cfg.

---
 tools/oneclick/base/modelsim_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/oneclick/base/modelsim_config.py b/tools/oneclick/base/modelsim_config.py
index bdfe4d4063..30ee59d199 100755
--- a/tools/oneclick/base/modelsim_config.py
+++ b/tools/oneclick/base/modelsim_config.py
@@ -252,7 +252,7 @@ class ModelsimConfig(hdl_config.HdlConfig):
                 fp.write('Project_Sim_Count = %d\n' % len(test_bench_files))
                 project_sim_p_defaults = 'Generics {} timing default -std_output {} -nopsl 0 +notimingchecks 0 selected_du {} -hazards 0 -sdf {} ok 1 -0in 0 -nosva 0 +pulse_r {} -absentisempty 0 -multisource_delay {} +pulse_e {} vopt_env 1 -coverage 0 -sdfnoerror 0 +plusarg {} -vital2.2b 0 -t default -memprof 0 is_vopt_flow 0 -noglitch 0 -nofileshare 0 -wlf {} -assertdebug 0 +no_pulse_msg 0 -0in_options {} -assertfile {} -sdfnowarn 0 -Lf {} -std_input {}'
                 project_sim_p_search_libraries = '-L {}'
-                if 'modelsim_search_libraries' in lib_dict:
+                if 'modelsim_search_libraries' in self.tool_dict:
                     project_sim_p_search_libraries = '-L {'
                     for sl in self.tool_dict['modelsim_search_libraries'].split():
                         project_sim_p_search_libraries += sl
-- 
GitLab