diff options
author | midipix <writeonce@midipix.org> | 2018-07-16 13:43:25 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-16 13:43:25 -0400 |
commit | a9abe3692b5a01866cd2babd31c55eacffe14666 (patch) | |
tree | d3f450cdda45e85a72f4d06990965cb9191842cd /src/driver/slbt_driver_ctx.c | |
parent | d8fec9d5c6656d9223bdec90e2b11c9750354102 (diff) | |
download | slibtool-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.c | 5 |
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); |