summaryrefslogtreecommitdiff
path: root/xmake/toolchains/sdcc/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/toolchains/sdcc/xmake.lua')
-rw-r--r--xmake/toolchains/sdcc/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/toolchains/sdcc/xmake.lua b/xmake/toolchains/sdcc/xmake.lua
index ce4862822..c76723c2a 100644
--- a/xmake/toolchains/sdcc/xmake.lua
+++ b/xmake/toolchains/sdcc/xmake.lua
@@ -67,7 +67,7 @@ toolchain("sdcc")
end
-- add port flags for arch
- local arch = get_config("arch")
+ local arch = toolchain:arch()
if arch then
toolchain:add("cxflags", "-m" .. arch)
toolchain:add("ldflags", "-m" .. arch)