summaryrefslogtreecommitdiff
path: root/xmake/includes/check_cflags.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-12 22:46:20 +0800
committerruki <[email protected]>2023-10-12 22:46:20 +0800
commit09ad995e7113f2273b5e441905a914198e23927b (patch)
tree0b88d1b20bfbfda75aa52d0ec26ae2f6f2ad86dd /xmake/includes/check_cflags.lua
parent9449c51bf2e709ba7807093a6876cf4eadf9fbac (diff)
rename interp interfaces
Diffstat (limited to 'xmake/includes/check_cflags.lua')
-rw-r--r--xmake/includes/check_cflags.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/includes/check_cflags.lua b/xmake/includes/check_cflags.lua
index cc126a31c..5da75b699 100644
--- a/xmake/includes/check_cflags.lua
+++ b/xmake/includes/check_cflags.lua
@@ -28,7 +28,7 @@
function check_cflags(definition, flags, opt)
opt = opt or {}
local optname = opt.name or ("__" .. definition)
- save_scope()
+ interp_save_scope()
option(optname)
set_showmenu(false)
add_defines(definition)
@@ -39,7 +39,7 @@ function check_cflags(definition, flags, opt)
end
end)
option_end()
- restore_scope()
+ interp_restore_scope()
add_options(optname)
end
@@ -57,7 +57,7 @@ function configvar_check_cflags(definition, flags, opt)
opt = opt or {}
local optname = opt.name or ("__" .. definition)
local defname, defval = table.unpack(definition:split('='))
- save_scope()
+ interp_save_scope()
option(optname)
set_showmenu(false)
if opt.default == nil then
@@ -70,7 +70,7 @@ function configvar_check_cflags(definition, flags, opt)
end
end)
option_end()
- restore_scope()
+ interp_restore_scope()
if opt.default == nil then
add_options(optname)
else