From 34a96e7d23ab616857230fdfc642c5560cfd079d Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 26 Feb 2018 23:23:33 -0500 Subject: driver: allow flavor-based use of native tools (ar,ranlib,etc.) --- src/driver/slbt_driver_ctx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index ed267cd..1993414 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -508,6 +508,11 @@ static int slbt_init_host_params( host->flavor = "default"; cfgmeta->flavor = "fallback, unverified"; } + + if (fcompiler && !fnative) + if ((mark = strstr(drvhost->machine,host->flavor))) + if (mark > drvhost->machine) + fnative = (*--mark == '-'); } /* toollen */ -- cgit v1.2.3