Re: [PATCH] Add -target to clang switch while cross compiling.

From: Daniel Borkmann
Date: Sat Oct 14 2017 - 19:10:50 EST


On 10/13/2017 09:24 PM, Abhijit Ayarekar wrote:
Update to llvm excludes assembly instructions.
llvm git revision is below

commit 65fad7c26569 ("bpf: add inline-asm support")

This change will be part of llvm release 6.0

__ASM_SYSREG_H define is not required for native compile.
-target switch includes appropriate target specific files
while cross compiling

Tested on x86 and arm64.

Signed-off-by: Abhijit Ayarekar <abhijit.ayarekar@xxxxxxxxxxxxxxxxxx>

Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>