diff options
| author | ruki <[email protected]> | 2022-02-26 00:43:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-26 00:43:13 +0800 |
| commit | 9d77af7a00a833e0d42c0815877c6dc0ad5c4498 (patch) | |
| tree | ba287ab375d7e9805812b94bbe6bcf8bf92748da /xmake/modules/lib/detect/has_flags.lua | |
| parent | df4777bc2a897d054e4a5706fa2a34393b37c815 (diff) | |
improve cl/has_flags
Diffstat (limited to 'xmake/modules/lib/detect/has_flags.lua')
| -rw-r--r-- | xmake/modules/lib/detect/has_flags.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua index 4559f7959..88bb958b5 100644 --- a/xmake/modules/lib/detect/has_flags.lua +++ b/xmake/modules/lib/detect/has_flags.lua @@ -73,7 +73,9 @@ function main(name, flags, opt) local arch = opt.arch or config.get("arch") or os.arch() -- init cache key - local key = plat .. "_" .. arch .. "_" .. tool.program .. "_" .. (tool.version or "") .. "_" .. (opt.toolkind or "") .. "_" .. (opt.flagkind or "") .. "_" .. table.concat(opt.sysflags, " ") .. "_" .. opt.flagskey + local key = plat .. "_" .. arch .. "_" .. tool.program .. "_" + .. (tool.version or "") .. "_" .. (opt.toolkind or "") + .. "_" .. (opt.flagkind or "") .. "_" .. table.concat(opt.sysflags, " ") .. "_" .. opt.flagskey -- @note avoid detect the same program in the same time if running in the coroutine (e.g. ccache) local coroutine_running = scheduler.co_running() |
