Where is the arm-none-eabi target?
dangbinghoo
dangbinghoo at gmail.com
Tue Mar 31 09:59:44 UTC 2020
On Friday, 13 March 2020 at 14:41:03 UTC, IGotD- wrote:
> I'm trying to compile druntime for a custom OS. When I try to
> compile for the target triple -target=arm-none-eabi, the
> compiler does nothing without any error messages and there is
> no object file output at all. However according to this guide.
>
> https://wiki.dlang.org/Minimal_semihosted_ARM_Cortex-M_%22Hello_World%22
>
> it uses the triple thumb-none-linux-eabi, which is kind odd of
> but it might work for that particular case.
>
> The problem is when using thumb-none-linux-eabi, the compiler
> automatically inserts D version identifiers like Posix. There
> are ways around this like putting your desired target sooner in
> the version if-else statements but still for completeness
> shouldn't the non OS target be supported and why aren't there
> any warning messages when using the arm-none-eabi target?
IMO, ldc right now will not work without a real OS like
windows/linux/macos, as druntime and phobos is built upon with
clib. And none-eabi doesn't have the "standard C library".
it will only work with arm-none-eabi target when trying to build
LDC a "betterC compiler".
More information about the digitalmars-d-ldc
mailing list