[LLVMbugs] [Bug 21057] New: compiler-rt: CMakeLists.txt applies -m64 option for non-X86 platforms.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 24 10:37:04 PDT 2014


            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: unassignedbugs at nondot.org
          Reporter: llvm.mail.list at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

  set(TARGET_64_BIT_CFLAGS "-m64")
  set(TARGET_32_BIT_CFLAGS "-m32")
  set(TARGET_64_BIT_CFLAGS "")
  set(TARGET_32_BIT_CFLAGS "")

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

-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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140924/4c96ee51/attachment.html>

More information about the llvm-bugs mailing list