[llvm-dev] Compiling for AARCH64 (VMA=42)

Simone Atzeni via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 25 09:34:30 PST 2015


Oh great thanks!

I actually have to do the same for PPC64 (44 and 46 bits).
Right now I am doing it in the same way you do for AARCH, so I am defining a SANITIZER_PPC64_VMA variable.

The problem is that the check needs to be done at compile time in order to select for example the right memory mapping in san_platform.h.

Do you guys have already an idea how to automize that? 

Best,
Simone

> On Nov 25, 2015, at 10:29, Renato Golin <renato.golin at linaro.org> wrote:
> 
> On 25 November 2015 at 17:19, Simone Atzeni via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> cmake -G "Ninja" -D SANITIZER_AARCH64_VMA=42 ..
> 
> Hi Simone,
> 
> That should actually be in CFLAGS:
> 
> -DCMAKE_C_FLAGS='-DSANITIZER_AARCH64_VMA=42'
> -DCMAKE_CXX_FLAGS='-DSANITIZER_AARCH64_VMA=42'
> 
> It's a bit messy, sorry about that, but we're working on making the
> VMA settings automatic without flags.
> 
> cheers,
> --renato



More information about the llvm-dev mailing list