summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/driver/slbt_driver_ctx.c7
-rw-r--r--src/skin/slbt_skin_default.c3
2 files changed, 9 insertions, 1 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];
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index 9dd372e..e904e84 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -139,7 +139,8 @@ const struct argv_option slbt_default_options[] = {
{"output", 'o',TAG_OUTPUT,ARGV_OPTARG_REQUIRED,0,0,"<file>",
"write output to %s"},
- {"target", 0,TAG_TARGET,ARGV_OPTARG_REQUIRED,0,0,"<target>",
+ {"target", 0,TAG_TARGET,ARGV_OPTARG_REQUIRED,
+ ARGV_OPTION_HYBRID_SPACE,0,"<target>",
"set an explicit (cross-)target, then pass it to "
"the compiler"},