Skip to content

Commit

Permalink
fix armclang #5719
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 16, 2024
1 parent 5393bc0 commit cd6663a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/toolchains/armclang/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ toolchain("armclang")
toolchain:config_set("sdkdir", mdk.sdkdir_armclang)
-- different assembler choices for different versions of armclang
local armclang = find_tool("armclang", {version = true, force = true, paths = path.join(mdk.sdkdir_armclang, "bin")})
if armclang and semver.compare(armclang.version, "6.13") > 0 then
if armclang and armclang.version and semver.compare(armclang.version, "6.13") > 0 then
toolchain:config_set("toolset_as", "armclang")
else
toolchain:config_set("toolset_as", "armasm")
Expand Down

0 comments on commit cd6663a

Please sign in to comment.