[PATCH] rld-cc: Add -target to recognised cflags

Gedare Bloom gedare at rtems.org
Wed Mar 31 16:04:45 UTC 2021


On Wed, Mar 31, 2021 at 12:19 AM Hesham Almatary
<hesham.almatary at cl.cam.ac.uk> wrote:
>
> Ping
>
Go ahead if you tested with gcc also.

> On Wed, 24 Mar 2021 at 09:57, Hesham Almatary <hesham.almatary at cl.cam.ac.uk> wrote:
>>
>> -target *-*-* flag is necessary for LLVM/Clang while cross-compiling
>> ---
>>  rtemstoolkit/rld-cc.cpp | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/rtemstoolkit/rld-cc.cpp b/rtemstoolkit/rld-cc.cpp
>> index bb03ff6..b424214 100644
>> --- a/rtemstoolkit/rld-cc.cpp
>> +++ b/rtemstoolkit/rld-cc.cpp
>> @@ -110,6 +110,7 @@ namespace rld
>>            { fg_include, "-I",       2, true,  0 },
>>            { fg_include, "-isystem", 2, true,  0 },
>>            { fg_include, "-sysroot", 2, true,  0 },
>> +          { fg_machine, "-target" , 2, false, 0 },
>>            { fg_machine, "-O",       1, false, 0 },
>>            { fg_machine, "-m",       1, false, 0 },
>>            { fg_machine, "-f",       1, false, 0 },
>> --
>> 2.25.1
>>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list