[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang

Gundapaneni, Sumanth
Tue, 16 Dec 2014 20:12:47 -0000

The point here is, if you are not building for Android.
You will hit this patch with cmake configuration
-DCOMPILER_RT_TEST_TRIPLE=aarch64-linux-gnu

+  elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES
"aarch64")
+    test_target_arch(aarch64 "-march=aarch64")

I don't see "-march=aarch64" is a valid flag on either LLVM or
GCC.
Should we replace this with a flag which is valid for only aarch64 and works for
both LLVM and GCC ?

If the compiler-rt build works for others, I would like to see their cmake
recipe ?

--Sumanth G
-----Original Message-----
From: Tim Northover [mailto:t.p.northover at gmail.com]
Sent: Wednesday, December 10, 2014 8:02 AM
To: Christophe Lyon
Cc: Renato Golin; Gundapaneni, Sumanth; llvmdev at cs.uiuc.edu; Kostya
Serebryany
Subject: Re: [Compiler-rt] -march=aarch64 flag in gcc/clang

> Not sure what r181130 is supposed to do, though, since it introduces a
> buggy option.

I didn't even have compiler-rt checked out when I was doing that; I was just
trying to get the base check-all working. As I recall that option filtered
through to some llvm-lit config files. Though it might have been a .inc header.

Cheers.

Tim.