Bladeren bron

improve luajit

ruki 5 jaren geleden
bovenliggende
commit
07c868c2a1
2 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 3 0
      packages/l/luajit/xmake.lua
  2. 3 0
      packages/m/moonjit/xmake.lua

+ 3 - 0
packages/l/luajit/xmake.lua

@@ -19,6 +19,9 @@ package("luajit")
 
     on_load(function (package)
         package:addenv("PATH", "bin")
+        if package:config("shared") then
+            package:addenv("PATH", "lib")
+        end
     end)
 
     on_install("windows", "linux", "macosx", "bsd", "android", "iphoneos", function (package)

+ 3 - 0
packages/m/moonjit/xmake.lua

@@ -18,6 +18,9 @@ package("moonjit")
 
     on_load(function (package)
         package:addenv("PATH", "bin")
+        if package:config("shared") then
+            package:addenv("PATH", "lib")
+        end
     end)
 
     on_install("windows", "linux", "macosx", "bsd", "android", "iphoneos", function (package)