let args = make_compile_args(config,
props,
link_args,
- |a, b| ThisFile(make_exe_name(a, b)), testfile);
+ |a, b| TargetLocation::ThisFile(make_exe_name(a, b)), testfile);
compose_and_run_compiler(config, props, testfile, args, None)
}
crate_type,
|a,b| {
let f = make_lib_name(a, b, testfile);
- ThisDirectory(f.dir_path())
+ TargetLocation::ThisDirectory(f.dir_path())
},
&abs_ab);
let auxres = compose_and_run(config,
args.push("prefer-dynamic".to_string());
}
let path = match xform_file {
- ThisFile(path) => {
+ TargetLocation::ThisFile(path) => {
args.push("-o".to_string());
path
}
- ThisDirectory(path) => {
+ TargetLocation::ThisDirectory(path) => {
args.push("--out-dir".to_string());
path
}
let args = make_compile_args(config,
props,
link_args,
- |a, b| ThisDirectory(output_base_name(a, b).dir_path()),
+ |a, b| TargetLocation::ThisDirectory(
+ output_base_name(a, b).dir_path()),
testfile);
compose_and_run_compiler(config, props, testfile, args, None)
}