summaryrefslogtreecommitdiffhomepage
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-16 13:43:25 -0400
committermidipix <writeonce@midipix.org>2018-07-16 13:43:25 -0400
commita9abe3692b5a01866cd2babd31c55eacffe14666 (patch)
treed3f450cdda45e85a72f4d06990965cb9191842cd /src/driver/slbt_driver_ctx.c
parentd8fec9d5c6656d9223bdec90e2b11c9750354102 (diff)
downloadslibtool-a9abe3692b5a01866cd2babd31c55eacffe14666.tar.bz2
slibtool-a9abe3692b5a01866cd2babd31c55eacffe14666.tar.xz
driver: if no --tag had been defined in compile mode, set --tag to CC.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 623a3f0..120f014 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1277,6 +1277,11 @@ int slbt_get_driver_ctx(
if (cctx.drvflags & (SLBT_DRIVER_CONFIG | SLBT_DRIVER_FEATURES))
cctx.mode = SLBT_MODE_INFO;
+ /* --tag */
+ if (cctx.mode == SLBT_MODE_COMPILE)
+ if (cctx.tag == SLBT_TAG_UNKNOWN)
+ cctx.tag = SLBT_TAG_CC;
+
/* driver context */
if (!(ctx = slbt_driver_ctx_alloc(meta,fdctx,&cctx)))
return slbt_get_driver_ctx_fail(meta);