Windows --> arm-linux cross compiler and lld
Jacob Carlborg
doob at me.com
Mon Apr 9 06:59:43 UTC 2018
On Monday, 9 April 2018 at 01:45:38 UTC, Mike Franklin wrote:
> Well, actually, I suppose libc, libm, libpthread, and whatever
> else is needed to create a binary is actually provided by the
> target, and not by the GNU toolchain. I suppose I could copy
> the necessary .a/.o/.so files to the Windows host, but is there
> some way to have ldc invoke lld.exe on the host, or will I have
> to resort to -c (separate compile and link) to avoid having to
> provision a windows GCC toolchain?
You can link with Clang instead of GCC by setting the `CC`
environment variable. Clang is already a cross-compiler. Using
the `-isysroot` you can specify the root directory where it tries
to find libraries, includes and binaries.
--
/Jacob Carlborg
More information about the digitalmars-d-ldc
mailing list