diff options
| author | ruki <[email protected]> | 2022-07-29 22:36:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-29 22:36:04 +0800 |
| commit | 62a97765a4e28a6437d011e2f9dd09d538c1e62c (patch) | |
| tree | d29dbc173f568c4bff2f46b6751afd73f5e89a6a /xmake | |
| parent | c7d8940dbe8c82b5690c60136a251c30e6214c66 (diff) | |
get cpuinfo for linux
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/modules/private/action/build/object.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua index c906ea8de..70446949a 100644 --- a/xmake/modules/private/action/build/object.lua +++ b/xmake/modules/private/action/build/object.lua @@ -48,6 +48,7 @@ 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 |
