summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/luajit
diff options
context:
space:
mode:
authorLuka Blaskovic <lblasc@tvbeat.com>2023-09-04 08:19:03 +0000
committerLuka Blaskovic <lblasc@tvbeat.com>2023-09-04 08:19:06 +0000
commit01901b6df5fa0fe69d7410e3e73afe81e4693e59 (patch)
tree456de077f00a05300fc2933faa6c879a893969d4 /pkgs/development/interpreters/luajit
parent64566a5234b57c0fc528c5f421d8e2ca1f30d054 (diff)
luajit: add optional arg enableRegisterAllocationRandomization
https://github.com/LuaJIT/LuaJIT/issues/1062#issuecomment-1698272269
Diffstat (limited to 'pkgs/development/interpreters/luajit')
-rw-r--r--pkgs/development/interpreters/luajit/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/luajit/default.nix b/pkgs/development/interpreters/luajit/default.nix
index 16c2876f9f25..28493cc48aec 100644
--- a/pkgs/development/interpreters/luajit/default.nix
+++ b/pkgs/development/interpreters/luajit/default.nix
@@ -24,6 +24,7 @@
, enableGDBJITSupport ? false
, enableAPICheck ? false
, enableVMAssertions ? false
+, enableRegisterAllocationRandomization ? false
, useSystemMalloc ? false
# Upstream generates randomized string id's by default for security reasons
# https://github.com/LuaJIT/LuaJIT/issues/626. Deterministic string id's should
@@ -50,6 +51,7 @@ let
++ optional enableGDBJITSupport "-DLUAJIT_USE_GDBJIT"
++ optional enableAPICheck "-DLUAJIT_USE_APICHECK"
++ optional enableVMAssertions "-DLUAJIT_USE_ASSERT"
+ ++ optional enableRegisterAllocationRandomization "-DLUAJIT_RANDOM_RA"
++ optional deterministicStringIds "-DLUAJIT_SECURITY_STRID=0"
;