summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-24 08:34:01 +0800
committerGitHub <[email protected]>2025-08-24 08:34:01 +0800
commitf1694dae9abcdb479bf9e4c8f59712c7d5d62c98 (patch)
tree83fe98426c1b58e2ec3d8d0492bfa1d67ed33785
parentc28b80c6c6ddb1ec816841d7104870869a9210b0 (diff)
parent351ac25125ba8c9cff4220c1c6b6cb305f649884 (diff)
Merge pull request #6741 from xmake-io/vsxmake
fix vsxmake options #6739
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua4
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua4
2 files changed, 6 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index 448b89e76..7a4a49dc8 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -406,7 +406,9 @@ function make(outputdir, vsinfo)
-- clear all options
for _, opt in pairs(project.options()) do
- opt:clear()
+ if not config.readonly(opt:fullname()) then
+ opt:clear()
+ end
end
-- clear cache
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 815fef802..613a41404 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -456,7 +456,9 @@ function main(outputdir, vsinfo)
-- clear all options
for _, opt in pairs(project.options()) do
- opt:clear()
+ if not config.readonly(opt:fullname()) then
+ opt:clear()
+ end
end
-- clear cache