http://llvm.org/bugs/show_bug.cgi?id=21057

            Bug ID: 21057
           Summary: compiler-rt: CMakeLists.txt applies -m64 option for
                    non-X86 platforms.
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

compiler-rt/CMakeLists.txt contains the following lines:

if (NOT MSVC)
  set(TARGET_64_BIT_CFLAGS "-m64")
  set(TARGET_32_BIT_CFLAGS "-m32")
else()
  set(TARGET_64_BIT_CFLAGS "")
  set(TARGET_32_BIT_CFLAGS "")
endif()

If LLVM is compiled for ARM using appropriate cross compiler for that platform,
cmake fails as it passes -m64 to the compiler which does not accept this
option.

-m64 is relevant to X86/64 only. The conditional should also check if the
platform is X86.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to