]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Add 'cc' file type for saving bytecode.
authorMike Pall <mike>
Sat, 21 Oct 2023 11:31:45 +0000 (13:31 +0200)
committerMike Pall <mike>
Sat, 21 Oct 2023 11:31:45 +0000 (13:31 +0200)
Contributed by Sergey Bronnikov. #1105

doc/running.html
src/jit/bcsave.lua

index 3afc1b560b5508c1f61e763e8dc4b70b6a52dd7a..9dd2b411c648d8d09f92d99f7f8dc1351960a146 100644 (file)
@@ -120,7 +120,8 @@ file name:
 </p>
 <ul>
 <li><tt>c</tt> &mdash; C source file, exported bytecode data.</li>
-<li><tt>h</tt> &mdash; C header file, static bytecode data.</li>
+<li><tt>cc</tt> &mdash; C++ source file, exported bytecode data.</li>
+<li><tt>h</tt> &mdash; C/C++ header file, static bytecode data.</li>
 <li><tt>obj</tt> or <tt>o</tt> &mdash; Object file, exported bytecode data
 (OS- and architecture-specific).</li>
 <li><tt>raw</tt> or any other extension &mdash; Raw bytecode file (portable).
index 74699f3d5fccaa373855f4a27d552411a48c32b7..390d297c3c4e3ee8f4ff36e2559e1dd688116753 100644 (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 = {