diff options
| author | ruki <[email protected]> | 2022-07-29 22:39:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-29 22:39:16 +0800 |
| commit | 4fc14288cfe6b2ecd0164ffb1b4dd4669adbd72d (patch) | |
| tree | ffdd35c1bfa291cc29f2a7296406d5b7ff85b505 | |
| parent | 2d782164c5c5d412890fbae2d4b72971c3239dc5 (diff) | |
fix cpuinfo for bsd
| -rw-r--r-- | core/src/xmake/os/cpuinfo.c | 1 | ||||
| -rw-r--r-- | xmake/modules/private/action/build/object.lua | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/core/src/xmake/os/cpuinfo.c b/core/src/xmake/os/cpuinfo.c index e5d27a0f3..49f6e27a4 100644 --- a/core/src/xmake/os/cpuinfo.c +++ b/core/src/xmake/os/cpuinfo.c @@ -207,7 +207,6 @@ static tb_float_t xm_os_cpuinfo_usagerate() tb_long_t intr = states[CP_INTR]; tb_long_t idle = states[CP_IDLE]; - tb_trace_i("%ld %ld %ld %ld %ld", user, nice, sys, intr, idle); tb_int64_t active = user + nice + sys + intr; tb_int64_t total = user + nice + sys + idle + intr; if (total_prev > 0 && active_prev > 0) diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua index 70446949a..c906ea8de 100644 --- a/xmake/modules/private/action/build/object.lua +++ b/xmake/modules/private/action/build/object.lua @@ -48,7 +48,6 @@ function _do_build_file(target, sourcefile, opt) -- dry run? local dryrun = option.get("dry-run") - print(os.cpuinfo("usagerate")) -- need build this object? -- -- we need use `os.mtime(dependfile)` to determine the mtime of the dependfile to avoid objectfile corruption due to compilation interruptions |
