summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-04 03:11:56 +0000
committermidipix <writeonce@midipix.org>2024-02-04 03:15:58 +0000
commit80b4319d2e8453a90c2cecba3bfd43cf4dddbc0a (patch)
treeb398622d72e9b12ea3277a27c2fe701d1d878eee /src/driver/slbt_driver_ctx.c
parent63953420efc0b8f686bfba75572365be10bbaa1f (diff)
downloadslibtool-80b4319d2e8453a90c2cecba3bfd43cf4dddbc0a.tar.bz2
slibtool-80b4319d2e8453a90c2cecba3bfd43cf4dddbc0a.tar.xz
driver: accept ``target <target>'' as a synonym for ``--target=<target>''.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index c733bfc..fcac8a8 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -691,6 +691,13 @@ static int slbt_split_argv(
*cargv++ = argv[i];
*targv++ = argv[i];
+ } else if (!(strcmp("target",&argv[i][1]))) {
+ *cargv++ = argv[i];
+ *targv++ = argv[i++];
+
+ *cargv++ = argv[i];
+ *targv++ = argv[i];
+
} else if (!(strncmp("-sysroot=",&argv[i][1],9))) {
*cargv++ = argv[i];
*targv++ = argv[i];