From a9abe3692b5a01866cd2babd31c55eacffe14666 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 16 Jul 2018 13:43:25 -0400 Subject: driver: if no --tag had been defined in compile mode, set --tag to CC. --- src/driver/slbt_driver_ctx.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/driver/slbt_driver_ctx.c') 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); -- cgit v1.2.3