diff options
author | midipix <writeonce@midipix.org> | 2018-07-11 05:31:46 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-11 06:05:58 -0400 |
commit | 0bfff4a80d596810a1798a3710a0e9ff96a9f925 (patch) | |
tree | e02a3fd1090dddf538591409ed5e90f3d2e2f6ef | |
parent | ae685472305e04409a92afdcc725826cc50bfdab (diff) | |
download | slibtool-0bfff4a80d596810a1798a3710a0e9ff96a9f925.tar.bz2 slibtool-0bfff4a80d596810a1798a3710a0e9ff96a9f925.tar.xz |
slbt_init_host_params(): further eliminate compiler -dumpmachine invocations.
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 5 |
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; |