compdir = opt_compdir.value
if compdir == null then
var dir = once ("NIT_COMPDIR".to_symbol).environ
- if not dir.is_empty then
+ if not dir.is_empty then
compdir = dir
end
if compdir == null then
end
end
compdir += ext_prefix
+ compdir = compdir.simplify_path
clibdir = opt_clibdir.value
if clibdir == null then
var dir = once ("NIT_DIR".to_symbol).environ
- if dir.is_empty then
+ if dir.is_empty then
dir = "{sys.program_name.dirname}/../clib"
if dir.file_exists then clibdir = dir
else
fatal_error(null, "Error: Cannot locate NIT C library directory. Uses --clibdir or envvar NIT_DIR.")
end
end
- bindir = opt_bindir.value
+ clibdir = clibdir.simplify_path
+ bindir = opt_bindir.value
if bindir == null then
var dir = once ("NIT_DIR".to_symbol).environ
- if dir.is_empty then
+ if dir.is_empty then
dir = "{sys.program_name.dirname}/../bin"
if dir.file_exists then bindir = dir
else
fatal_error(null, "Error: Cannot locate NIT tools directory. Uses --bindir or envvar NIT_DIR.")
end
end
+ bindir = bindir.simplify_path
end
redef fun perform_work(mods)