Ran
|
Jobs
1
|
Files
89
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
github
Fix C file generation in jit.bcsave. Thanks to codicodi. (cherry picked from commit 62903bacf) LuaJIT allows exporting bytecode to a C file using the option `-b`, see [1]. For building a generated C file in C++ projects, C file uses a macro `__cplusplus` [2], but this macro was broken by the commit a9dd47b7f ("Extend -b to generate c/h/obj/o files with embedded bytecode."). With this breakage, C/C++ compiler removes the definition of an array with the bytecode, and the resulted object file misses a symbol with the bytecode. The patch fixes the broken macro. Note, test test/lua-Harness-tests/411-luajit.t checks the presence of the macro `__cplusplus` in the generated C file, however, it doesn't catch the bug. Sergey Bronnikov: * added the description and the test for the problem Part of tarantool/tarantool#9145 1. https://luajit.org/running.html 2. https://en.cppreference.com/w/cpp/preprocessor/replace
5659 of 6016 branches covered (94.07%)
Branch coverage included in aggregate %.
21598 of 23409 relevant lines covered (92.26%)
2818254.98 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
99.22 |
-0.78% | src/lj_func.c |
1 |
93.09 |
-0.33% | src/lj_ir.c |
1 |
77.63 |
1.1% | src/lj_opt_fold.c |
1 |
99.04 |
1.44% | src/lj_str.c |
12 |
97.16 |
0.17% | src/lj_snap.c |
13 |
91.91 |
1.75% | src/lj_ffrecord.c |
21 |
89.45 |
0.0% | src/lj_debug.c |
37 |
96.35 |
0.06% | src/lj_record.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 8092448272.1 | 89 |
92.63 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|