summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/project.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 445ce5a83..e6ad56a41 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -30,6 +30,7 @@ local path = require("base/path")
local utils = require("base/utils")
local table = require("base/table")
local filter = require("base/filter")
+local deprecated = require("base/deprecated")
local interpreter = require("base/interpreter")
local target = require("project/target")
local config = require("project/config")
@@ -441,6 +442,16 @@ function project._interpreter()
-- map it
result = maps[variable]
+
+ -- deprecated for "$(OS)"
+ if result == nil and variable == "OS" then
+
+ -- get os:upper()
+ result = platform.os():upper()
+
+ -- deprecated
+ deprecated.add("$(\"OS\")", "$(\"os:upper\")")
+ end
end
-- ok?