Skip to content

Commit

Permalink
set language
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 26, 2025
1 parent c214640 commit 6824ea3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions xmake/modules/core/tools/iccarm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6824ea3

Please sign in to comment.