diff options
| author | ruki <[email protected]> | 2020-10-24 00:29:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-24 00:29:25 +0800 |
| commit | fc28e3abf5f411fb976c1479a12378c81cd435ec (patch) | |
| tree | 0ba16319e5f0374799a3776501bacae14646fc5a /xmake/modules/detect/tools/cl/features.lua | |
| parent | 0917b2e02dbdd2380892afc441d422679cd38535 (diff) | |
fix has_features for multi-jobs
Diffstat (limited to 'xmake/modules/detect/tools/cl/features.lua')
| -rw-r--r-- | xmake/modules/detect/tools/cl/features.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/cl/features.lua b/xmake/modules/detect/tools/cl/features.lua index b9b5bb623..9e273bd25 100644 --- a/xmake/modules/detect/tools/cl/features.lua +++ b/xmake/modules/detect/tools/cl/features.lua @@ -26,7 +26,7 @@ import("cxxfeatures") function _get_macro_defines(snippets, extension, opt) -- make an stub source file - local sourcefile = path.join(os.tmpdir(), "detect", "cl_features" .. extension) + local sourcefile = os.tmpfile() .. extension local objectfile = sourcefile .. ".obj" local binaryfile = sourcefile .. ".exe" io.writefile(sourcefile, "#include <stdio.h>\n\nint main(int argc, char** argv)\n{\n" .. table.concat(table.wrap(snippets), "\n") .. "\nreturn 0;\n}\n") |
