Add 'cc' file type for saving bytecode.

Contributed by Sergey Bronnikov. #1105
This commit is contained in:
Mike Pall
2023-10-21 13:31:45 +02:00
parent 4eb47df605
commit e826d0c101
2 changed files with 4 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ Save LuaJIT bytecode: luajit -b[options] input output
-- Stop handling options.
- Use stdin as input and/or stdout as output.
File types: c h obj o raw (default)
File types: c cc h obj o raw (default)
]]
os.exit(1)
end
@@ -81,7 +81,7 @@ end
------------------------------------------------------------------------------
local map_type = {
raw = "raw", c = "c", h = "h", o = "obj", obj = "obj",
raw = "raw", c = "c", cc = "c", h = "h", o = "obj", obj = "obj",
}
local map_arch = {