From 0bfff4a80d596810a1798a3710a0e9ff96a9f925 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Wed, 11 Jul 2018 05:31:46 -0400
Subject: slbt_init_host_params(): further eliminate compiler -dumpmachine
 invocations.

---
 src/driver/slbt_driver_ctx.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index eff7e55..6675adb 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -457,10 +457,13 @@ static int slbt_init_host_params(
 	else
 		base = cctx->cargv[0];
 
-	fdumpmachine =  (cctx->mode == SLBT_MODE_COMPILE)
+	fdumpmachine  = (cctx->mode == SLBT_MODE_COMPILE)
 			|| (cctx->mode == SLBT_MODE_LINK)
 			|| (cctx->mode == SLBT_MODE_INFO);
 
+	fdumpmachine &= (!strcmp(base,"xgcc")
+			|| !strcmp(base,"xg++"));
+
 	/* support the portbld <--> unknown synonym */
 	if (!(drvhost->machine = strdup(SLBT_MACHINE)))
 		return -1;
-- 
cgit v1.2.3