summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/driver/slbt_driver_ctx.c5
1 files changed, 4 insertions, 1 deletions
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;