diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-03-22 11:03:56 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-03-22 11:03:56 +0100 |
commit | 68bbb15214e0048e4f32e0c38e192eab62dea7bd (patch) | |
tree | 2a47c60eb408881881a08ee945fd7470207c8f2d /passes | |
parent | 611cd010ae96b2b8eb394e051584861044977421 (diff) | |
download | yosys-68bbb15214e0048e4f32e0c38e192eab62dea7bd.tar.gz yosys-68bbb15214e0048e4f32e0c38e192eab62dea7bd.tar.bz2 yosys-68bbb15214e0048e4f32e0c38e192eab62dea7bd.zip |
Fixed detection of absolute paths in ABC for win32
Diffstat (limited to 'passes')
-rw-r--r-- | passes/abc/abc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/abc/abc.cc b/passes/abc/abc.cc index 69da710f2..8cd0211c1 100644 --- a/passes/abc/abc.cc +++ b/passes/abc/abc.cc @@ -1216,19 +1216,19 @@ struct AbcPass : public Pass { } if (arg == "-script" && argidx+1 < args.size()) { script_file = args[++argidx]; - if (!script_file.empty() && script_file[0] != '/' && script_file[0] != '+') + if (!script_file.empty() && !is_absolute_path(script_file) && script_file[0] != '+') script_file = std::string(pwd) + "/" + script_file; continue; } if (arg == "-liberty" && argidx+1 < args.size()) { liberty_file = args[++argidx]; - if (!liberty_file.empty() && liberty_file[0] != '/') + if (!liberty_file.empty() && !is_absolute_path(liberty_file)) liberty_file = std::string(pwd) + "/" + liberty_file; continue; } if (arg == "-constr" && argidx+1 < args.size()) { constr_file = args[++argidx]; - if (!constr_file.empty() && constr_file[0] != '/') + if (!constr_file.empty() && !is_absolute_path(constr_file)) constr_file = std::string(pwd) + "/" + constr_file; continue; } |