From 6eff203e9bf3348d090b6b5046466415bcd6530a Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg@phi-gamma.net>
Date: Tue, 21 Jul 2015 08:11:21 +0200
Subject: [mkstatus,build,conf] default to packaged fontloader via status file

This adds an entry ``loader`` on the ``notes`` hash in the status table
by means of which the fontloader can be specified. The status file is
read when building the configuration table, and if it is present the
entry in the ``loader`` table will be used as the default fontloader.
Otherwise, Luaotfload falls back on the reference loader.
---
 src/luaotfload-configuration.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src')

diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua
index e9393c5..e2cfbd8 100644
--- a/src/luaotfload-configuration.lua
+++ b/src/luaotfload-configuration.lua
@@ -140,9 +140,9 @@ local feature_presets = {
 --doc]]--
 
 local registered_loaders = {
-  default    = "fontloader",
-  fontloader = "fontloader",
-  tl2013     = "tl2013",
+  default   = luaotfloadstatus and luaotfloadstatus.notes.loader or "reference",
+  reference = "reference",
+  tl2014    = "tl2014",
 }
 
 --[[doc--
-- 
cgit v1.2.3