mirror of https://github.com/BOINC/boinc.git
Mac client/hostinfo_unix: fix for CPU features detection
- feature_string is only set to something useful in ARM64 case
This commit is contained in:
parent
2975069c37
commit
6193080dff
|
@ -910,10 +910,11 @@ static void get_cpu_info_mac(HOST_INFO& host) {
|
|||
} else if (log_flags.coproc_debug) {
|
||||
msg_printf(0, MSG_INFO, "[x86_64-M1] didn't find file %s", fpath);
|
||||
}
|
||||
#endif // defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
strncpy(features,feature_string.c_str(),sizeof(features));
|
||||
|
||||
#endif // defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
// Convert Mac CPU features string to match that returned by Linux
|
||||
for(p=features; *p; p++) {
|
||||
*p = tolower(*p);
|
||||
|
|
Loading…
Reference in New Issue