diff options
| author | Arthur LAURENT <[email protected]> | 2022-08-05 03:26:43 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-08-05 03:26:43 +0200 |
| commit | bd2fc3f699e468604bdf489c3348d22962f14012 (patch) | |
| tree | 6af4f655250a57de59209aea5fcc584a37216029 /xmake/rules/c++/modules/modules_support/clang.lua | |
| parent | d2d7292907f6aecbcb0b52aca4897bc7fbaf94cd (diff) | |
Use batchcmds:mkdir instead of os.mkdir when possible
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index e023acccb..4ab3c3892 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -185,13 +185,13 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt) outdir = path.join(cachedir, path.directory(headerunit.path)) end if not os.isdir(outdir) then - os.mkdir(outdir) + batchcmds:mkdir(outdir) end local bmifilename = path.basename(objectfile) .. get_bmi_extension() local bmifile = (outdir and path.join(outdir, bmifilename) or bmifilename) if not os.isdir(path.directory(objectfile)) then - os.mkdir(path.directory(objectfile)) + batchcmds:mkdir(path.directory(objectfile)) end local args = { modulecachepathflag .. cachedir, emitmoduleflag, "-c", "-o", bmifile} @@ -238,7 +238,7 @@ function build_modules(target, batchcmds, objectfiles, modules, opt) local m = modules[objectfile] if m then if not os.isdir(path.directory(objectfile)) then - os.mkdir(path.directory(objectfile)) + batchcmds:mkdir(path.directory(objectfile)) end local args = { emitmoduleinterfaceflag } |
