diff options
| author | zmmfly <[email protected]> | 2022-01-09 15:14:07 +0800 |
|---|---|---|
| committer | zmmfly <[email protected]> | 2022-01-09 15:14:07 +0800 |
| commit | 0702f048e67ce16f83c9dd2540185bb9bd34a525 (patch) | |
| tree | 57276feb207bbd1d033c7226870300d4adf25f24 | |
| parent | c0576c2fc972a17797ac9fe98e5e6deb00ba822a (diff) | |
armlink not need replace 'plus' to '+'
| -rw-r--r-- | xmake/toolchains/armclang/xmake.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/toolchains/armclang/xmake.lua b/xmake/toolchains/armclang/xmake.lua index f72410389..d78423849 100644 --- a/xmake/toolchains/armclang/xmake.lua +++ b/xmake/toolchains/armclang/xmake.lua @@ -64,16 +64,16 @@ toolchain("armclang") local arch = toolchain:arch() local arch_lower = arch:lower() - local arch_replace = string.replace(arch_lower, "plus", "+") + local arch_replace = "" local arch_target = "" -- convert for ldflag if arch_lower:startswith("cortex-m") then - arch_replace = string.replace(arch_replace, "cortex-m", "Cortex-M") + arch_replace = string.replace(arch_lower, "cortex-m", "Cortex-M") arch_target = "arm-arm-none-eabi" end if arch_lower:startswith("cortex-a") then - arch_replace = string.replace(arch_replace, "cortex-a", "Cortex-A") + arch_replace = string.replace(arch_lower, "cortex-a", "Cortex-A") arch_target = "aarch64-arm-none-eabi" end |
