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/gcc.lua | |
| parent | d2d7292907f6aecbcb0b52aca4897bc7fbaf94cd (diff) | |
Use batchcmds:mkdir instead of os.mkdir when possible
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index 23e89a30b..a3ef5c8a8 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -194,13 +194,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 = { "-c" } @@ -239,7 +239,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 = {"-o", objectfile} |
