Displaying 7 results from an estimated 7 matches for "test_target_arch".
2014 Dec 01
3
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
Hi,
I wonder if this is a valid flag in either clang/gcc.
The flag in question is "-march=aarch64". I verified with latest tip and neither clang nor gcc fail to recognize this flag.
This piece of code is in cmake/config-ix.cmake in compiler-rt repo.
+ elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64")
+ test_target_arch(aarch64 "-march=aarch64")
Anyone have any thoughts or any suggestions ? Currently this is blocking my compiler-rt build for aarch64-linux.
--Sumanth G
-------------- next part --------------
An HTML attachment was scrubbed...
URL...
2014 Dec 16
2
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
On 16 December 2014 at 21:12, Gundapaneni, Sumanth <sgundapa at quicinc.com> wrote:
> 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 ?
I...
2014 Dec 16
2
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
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 b...
2016 May 03
2
Problem on cross-compiling compiler-rt
This is currently a rough area in our build system, but there are two CMake options you probably need to set.
(1) -DLLVM_BUILD_EXTERNAL_COMPILER_RT=On —> This option causes the build to use the just-built clang when building compiler-rt
(2) -DCOMPILER_RT_DEFAULT_TARGET_ARCH=??? —> This is where you specify which architecture you want to build the compiler-rt archives and libraries for
2014 Jan 22
2
[LLVMdev] compiler-rt for ARM-Linux with CMake?
On 20 December 2013 10:43, Alexey Samsonov <samsonov at google.com> wrote:
> There are simply no CMake build rules for building compiler-rt
> libraries targeting ARM (see compiler-rt/lib/CMakeLists.txt).
>
Hi Alexey,
I've added the ARM files on that CMake file but I got nothing compiled on
ARM. Am I missing something?
About the sanitizers, is there anyone that is known to
2014 Dec 10
2
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
...;>
>> The flag in question is “-march=aarch64”. I verified with latest tip and
>> neither clang nor gcc fail to recognize this flag.
>>
>> This piece of code is in cmake/config-ix.cmake in compiler-rt repo.
>>
>>
>>
>> + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64")
>>
>> + test_target_arch(aarch64 "-march=aarch64")
>>
>>
>>
>> Anyone have any thoughts or any suggestions ? Currently this is blocking my
>> compiler-rt build for aarch64-linux.
>>
>>
>>
&g...
2016 May 05
2
Problem on cross-compiling compiler-rt
...ild system successfully configured and built clang/LLVM but failed to configure compiler-rt due to the clang checking in compiler-rt's Cmake system.
> I add x86 into LLVM_TARGET_ARCH, and this helps the just-built clang pass the CMake check, but failed in another checking which is invoked by test_target_arch. The test_target_arch is used to setup flags used for building compiler-rt, but it uses try_compile() function, which compiles a simple test code using libraries and invokes linker and linker scripts, flags, etc.. Without compiler-rt, clang will, of course, fails to link programs. However, compiler...