> -----Original Message----- > From: Jerin Jacob <[email protected]> > Sent: Sunday, October 4, 2020 10:30 AM > To: Juraj Linkeš <[email protected]> > Cc: Thomas Monjalon <[email protected]>; David Marchand > <[email protected]>; Aaron Conole <[email protected]>; > Michael Santana <[email protected]>; dpdk-dev <[email protected]> > Subject: Re: [dpdk-dev] [PATCH v2 1/3] build: add aarch64 clang to meson > cross- > compile > > On Thu, Oct 1, 2020 at 4:07 PM Juraj Linkeš <[email protected]> > wrote: > > > > Create meson cross file arm64_armv8_linux_clang_ubuntu1804. > > Use clang/LLVM toolchain with sysroot pointing to gcc cross stdlib. > > > > Signed-off-by: Juraj Linkeš <[email protected]> > > --- > > config/arm/arm64_armv8_linux_clang_ubuntu1804 | 20 > > +++++++++++++++++++ > > IMO, if we are adding a specific OS distribution-specific configuration then > it > won't scale. > Why not have just arm64_armv8_linux_clang ?
CFLAGS, LDFLAGS, c_args and c_link_args don't work when cross-compiling (at least they didn't work when I tested it) and that means we have to put the paths to stdlib (which llvm/clang doesn't implement) into a cross file. The arm64_armv8_linux_clang_ubuntu1804 contains paths that work with ubuntu clang/gcc packages (and would thus be used in CI). We can't have a generic cross file for clang because of this path limitation.

