mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Add 'cc' file type for saving bytecode.
Contributed by Sergey Bronnikov. #1105
This commit is contained in:
parent
4eb47df605
commit
e826d0c101
@ -120,7 +120,8 @@ file name:
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><tt>c</tt> — C source file, exported bytecode data.</li>
|
<li><tt>c</tt> — C source file, exported bytecode data.</li>
|
||||||
<li><tt>h</tt> — C header file, static bytecode data.</li>
|
<li><tt>cc</tt> — C++ source file, exported bytecode data.</li>
|
||||||
|
<li><tt>h</tt> — C/C++ header file, static bytecode data.</li>
|
||||||
<li><tt>obj</tt> or <tt>o</tt> — Object file, exported bytecode data
|
<li><tt>obj</tt> or <tt>o</tt> — Object file, exported bytecode data
|
||||||
(OS- and architecture-specific).</li>
|
(OS- and architecture-specific).</li>
|
||||||
<li><tt>raw</tt> or any other extension — Raw bytecode file (portable).
|
<li><tt>raw</tt> or any other extension — Raw bytecode file (portable).
|
||||||
|
@ -38,7 +38,7 @@ Save LuaJIT bytecode: luajit -b[options] input output
|
|||||||
-- Stop handling options.
|
-- Stop handling options.
|
||||||
- Use stdin as input and/or stdout as output.
|
- 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)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
@ -81,7 +81,7 @@ end
|
|||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
local map_type = {
|
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 = {
|
local map_arch = {
|
||||||
|
Loading…
Reference in New Issue
Block a user