From: Clifford Wolf Date: Sat, 23 Aug 2014 13:32:00 +0000 (+0200) Subject: Only call proc_share_dirname() in techmap when necessary X-Git-Tag: yosys-0.4~211 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c642dd0b3eb1390b6c1acd39c1f19797da27b190;p=yosys.git Only call proc_share_dirname() in techmap when necessary --- diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index beacdfa6f..660f1b388 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -829,14 +829,13 @@ struct TechmapPass : public Pass { int max_iter = -1; size_t argidx; - std::string proc_share_path = proc_share_dirname(); for (argidx = 1; argidx < args.size(); argidx++) { if (args[argidx] == "-map" && argidx+1 < args.size()) { map_files.push_back(args[++argidx]); continue; } if (args[argidx] == "-share_map" && argidx+1 < args.size()) { - map_files.push_back(proc_share_path + args[++argidx]); + map_files.push_back(proc_share_dirname() + args[++argidx]); continue; } if (args[argidx] == "-max_iter" && argidx+1 < args.size()) {