Skip to content

Commit

Permalink
bcc-lua: enable deterministic bytecode generation (#5213)
Browse files Browse the repository at this point in the history
LuaJIT does not generate bytecode deterministically by default, which
makes the build of bcc-lua unreproducible. However, support for
deterministic bytecode was added to LuaJIT some time ago. This change
enables it for bcc-lua.

- https://bugzilla.suse.com/show_bug.cgi?id=1236871
- LuaJIT/LuaJIT#1008
- https://reproducible-builds.org/
  • Loading branch information
wfrisch authored Feb 15, 2025
1 parent f954eb1 commit db3234f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (LUAJIT_LIBRARIES AND LUAJIT)

ADD_CUSTOM_COMMAND(
OUTPUT bcc.o
COMMAND ${LUAJIT} -bg bcc.lua bcc.o
COMMAND ${LUAJIT} -bgd bcc.lua bcc.o
DEPENDS bcc.lua
)

Expand Down

0 comments on commit db3234f

Please sign in to comment.