put mcpu in comments

This commit is contained in:
Anton-4 2021-11-15 13:43:19 +01:00
parent 030a504bd2
commit 6e23919811
6 changed files with 19 additions and 34 deletions

View file

@ -86,7 +86,7 @@ pub fn build_zig_host_native(
target: &str,
opt_level: OptLevel,
shared_lib_path: Option<&Path>,
target_valgrind: bool,
_target_valgrind: bool,
) -> Output {
let mut command = Command::new("zig");
command
@ -120,12 +120,13 @@ pub fn build_zig_host_native(
target,
]);
if target_valgrind {
// use single threaded testing for cli_run and enable this code if valgrind fails with unhandled instruction bytes, see #1963.
/*if target_valgrind {
command.args(&[
"-mcpu",
"x86_64"
]);
}
}*/
if matches!(opt_level, OptLevel::Optimize) {
command.args(&["-O", "ReleaseSafe"]);
@ -350,6 +351,7 @@ pub fn rebuild_host(
shared_lib_path: Option<&Path>,
target_valgrind: bool,
) {
dbg!("rebuilding host");
let c_host_src = host_input_path.with_file_name("host.c");
let c_host_dest = host_input_path.with_file_name("c_host.o");
let zig_host_src = host_input_path.with_file_name("host.zig");
@ -418,7 +420,7 @@ pub fn rebuild_host(
"i386-linux-musl",
opt_level,
shared_lib_path,
target_valgrind
target_valgrind,
)
}
@ -433,7 +435,7 @@ pub fn rebuild_host(
target_triple_str(target),
opt_level,
shared_lib_path,
target_valgrind
target_valgrind,
)
}
_ => panic!("Unsupported architecture {:?}", target.architecture),