mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.97] Fix compilation in macOS
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
#include "../arm/midr.h"
|
#include "../arm/midr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char* VERSION = "0.96";
|
static const char* VERSION = "0.97";
|
||||||
|
|
||||||
void print_help(char *argv[]) {
|
void print_help(char *argv[]) {
|
||||||
const char **t = args_str;
|
const char **t = args_str;
|
||||||
|
|||||||
@@ -887,7 +887,6 @@ void print_debug(struct cpuInfo* cpu) {
|
|||||||
free_cpuinfo_struct(cpu);
|
free_cpuinfo_struct(cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Fix on macOS
|
|
||||||
// TODO: Query HV and Xeon Phi levels
|
// TODO: Query HV and Xeon Phi levels
|
||||||
void print_raw(struct cpuInfo* cpu) {
|
void print_raw(struct cpuInfo* cpu) {
|
||||||
uint32_t eax;
|
uint32_t eax;
|
||||||
@@ -899,10 +898,12 @@ void print_raw(struct cpuInfo* cpu) {
|
|||||||
printf("--------------------------------------------------------------\n");
|
printf("--------------------------------------------------------------\n");
|
||||||
|
|
||||||
for(int c=0; c < cpu->topo->total_cores; c++) {
|
for(int c=0; c < cpu->topo->total_cores; c++) {
|
||||||
|
#ifndef __APPLE__
|
||||||
if(!bind_to_cpu(c)) {
|
if(!bind_to_cpu(c)) {
|
||||||
printErr("Failed binding to CPU %d", c);
|
printErr("Failed binding to CPU %d", c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
printf("CPU %d:\n", c);
|
printf("CPU %d:\n", c);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user