[latex3-commits] [latex3/latex3] main: Check for --stdengine opt. when building formats (8636ca778)

github at latex-project.org github at latex-project.org
Fri Feb 9 09:18:44 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/8636ca7789820adc60f01fceccda7b3a738ac528

>---------------------------------------------------------------

commit 8636ca7789820adc60f01fceccda7b3a738ac528
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Feb 9 08:18:44 2024 +0000

    Check for --stdengine opt. when building formats
    
    Saves a bit of time in e.g. l3trial.


>---------------------------------------------------------------

8636ca7789820adc60f01fceccda7b3a738ac528
 build-config.lua | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index e1c41674d..2e61353aa 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -144,9 +144,14 @@ local function fmt(engines,dest)
     return 0
   end
 
-  for _,engine in pairs(engines) do
-    local errorlevel = mkfmt(engine)
+  if options["stdengine"] then
+    local errorlevel = mkfmt(stdengine)
     if errorlevel ~= 0 then return errorlevel end
+  else
+    for _,engine in pairs(engines) do
+      local errorlevel = mkfmt(engine)
+      if errorlevel ~= 0 then return errorlevel end
+    end
   end
   return 0
 end





More information about the latex3-commits mailing list.