diff options
| author | ruki <[email protected]> | 2025-01-26 13:54:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-26 13:54:59 +0800 |
| commit | 6824ea3a0ad7eb1d488c9f4a703efcba1be57f1a (patch) | |
| tree | 243330fae297d151391ed61936606fb1cf386743 | |
| parent | c214640dfcde908d260490841cc85d9b1a386685 (diff) | |
set language
| -rw-r--r-- | xmake/modules/core/tools/iccarm.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/iccarm.lua b/xmake/modules/core/tools/iccarm.lua index ae706a448..2d11b9d27 100644 --- a/xmake/modules/core/tools/iccarm.lua +++ b/xmake/modules/core/tools/iccarm.lua @@ -60,6 +60,24 @@ function nf_optimize(self, level) return maps[level] end +-- make the vector extension flag +function nf_vectorext(self, extension) + local maps = { + all = "--vectorize" + } + return maps[extension] +end + +-- make the language flag +function nf_language(self, stdname) + if _g.cmaps == nil then + _g.cmaps = { + c89 = "--c89" + } + end + return _g.cmaps[stdname] +end + -- make the define flag function nf_define(self, macro) return "-D" .. macro |
