summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-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);