diff options
| author | as564335sa <[email protected]> | 2022-08-22 13:15:34 +0800 |
|---|---|---|
| committer | as564335sa <[email protected]> | 2022-08-22 13:15:34 +0800 |
| commit | e1ede04e5e66b503ac010d837f8e0aa94f0a7709 (patch) | |
| tree | 1da0dcd2e28978acbe2e2870f9eb96d34f329f0e | |
| parent | 37d057ef3617294486698fd20e4eebd82a808a04 (diff) | |
fixed armasm macro definition option
| -rw-r--r-- | xmake/modules/core/tools/armasm.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/armasm.lua b/xmake/modules/core/tools/armasm.lua index 3ae578c55..8d982010d 100644 --- a/xmake/modules/core/tools/armasm.lua +++ b/xmake/modules/core/tools/armasm.lua @@ -101,7 +101,16 @@ end -- make the define flag function nf_define(self, macro) - return {"--pd", macro .. " SETA 1"} + local s = macro:replace(" ", "") + local def = s:split("=") + if def[1] == nil then + return {"--pd", macro .. " SETA 1"} + end + local value = 1 + if def[2] ~= nil and #def[2] > 0 then + value = def[2] + end + return {"--pd", def[1] .. " SETA " .. value} end -- make the includedir flag |
