411564
driver: handle --target provided as a compiler argument.
@@ -200,7 +200,14 @@ static int slbt_split_argv(
|
|
200
200
|
else if (!(strcmp("Xcompiler",&argv[i][1])))
|
201
201
|
*cargv++ = argv[++i];
|
202
202
|
|
203
|
-
else
|
203
|
+
else if (!(strncmp("-target=",&argv[i][1],strlen("-target="))))
|
204
|
+
*targv++ = argv[i++];
|
205
|
+
|
206
|
+
else if (!(strcmp("-target",&argv[i][1]))) {
|
207
|
+
*targv++ = argv[i++];
|
208
|
+
*targv++ = argv[i++];
|
209
|
+
|
210
|
+
} else {
|
204
211
|
for (option=options; option->long_name; option++)
|
205
212
|
if (!(strcmp(option->long_name,&argv[i][1])))
|
206
213
|
break;
|