diff options
| author | ruki <[email protected]> | 2025-05-22 22:42:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-05-22 22:42:40 +0800 |
| commit | d558ace9f0d9daa3c51d3ac6b56147a67e995149 (patch) | |
| tree | 4d515d46890c591ac1d40a95fe83ae92df358a53 | |
| parent | bfc0f75db8c238187aa011f522adf9685e023b31 (diff) | |
fix buildir #6486
| -rw-r--r-- | xmake/actions/config/main.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 4ebbbe406..a3f04226e 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -372,9 +372,11 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) end -- translate the build directory - local builddir = config.get("builddir") or config.get("buildir") + local builddir = config.get("builddir") if config.get("buildir") then wprint("`xmake f --buildir=` has been deprecated, please use `xmake f -o/--builddir=`") + builddir = config.get("buildir") + config.set("builddir", builddir, {readonly = true, force = true}) end if builddir and path.is_absolute(builddir) then config.set("builddir", path.relative(builddir, project.directory()), {readonly = true, force = true}) |
