Hi list,
I'm using clang to cross-compile for a sparc-target.
Except for the compiler I (seem to) rely entirely on gcc-tools (ld,
asm). I doing this by passing the -B
- flag to clang.
I'm now facing an issue where I would like to have clang use the
c++-system-includes of my gcc-installation.
W
Hi Patrick,
This is a common case when cross compiling, so clang knows how to use a
gcc-toolchain installation: you just have to pass it the "--sysroot=..."
and "--toolchain=..." arguments, and it will get the header files and
linker / assembler for your target --- assuming your gcc-toolchain has
On Thu, Mar 24, 2016 at 11:48 AM, Arnaud Allard de Grandmaison via
cfe-users wrote:
> Hi Patrick,
>
> This is a common case when cross compiling, so clang knows how to use a
> gcc-toolchain installation: you just have to pass it the "--sysroot=..." and
> "--toolchain=..." arguments, and it will ge
There must be some misunderstanding there.
The goal is to write:
> clang++ -target sparc--netbsd -mcpu=... compile_flags --sysroot=...
--toolchain=.. -o program.exe program.cpp
And clang will cross-compile program.cpp for this specific sparc cpu using
the includes from the sysroot, and link usin
Hi Arnaud,
On Thu, 24 Mar 2016 16:48:30 +0100
Arnaud Allard de Grandmaison wrote:
> Hi Patrick,
>
> This is a common case when cross compiling, so clang knows how to use
> a gcc-toolchain installation: you just have to pass it the
> "--sysroot=..." and "--toolchain=..." arguments, and it will g