From 870bf7b79425d2d09fc95574e2d4eb161fc33823 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 14 Mar 2024 02:30:57 +0000 Subject: compile mode: avoid -I deduplication with project specific drivers. --- src/logic/slbt_exec_compile.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/logic') diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index cddb057..75194a3 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -50,6 +50,7 @@ static int slbt_exec_compile_finalize_argument_vector( char ** dst; char ** cmp; char * ccwrap; + char * custom; /* vector size */ base = ectx->argv; @@ -75,6 +76,9 @@ static int slbt_exec_compile_finalize_argument_vector( /* (program name) */ parg = &base[1]; + /* avoid -I deduplication with project specific drivers */ + custom = strchr(ectx->program,'/'); + /* split object args from all other args, record output */ /* annotation, and remove redundant -l arguments */ for (; *parg; ) { @@ -109,7 +113,7 @@ static int slbt_exec_compile_finalize_argument_vector( cap = aarg; dst = &base[1]; - for (; src