[LLVMbugs] [Bug 10051] New: Toolchain check broken (since the last change, r131256)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 30 06:59:16 PDT 2011


           Summary: Toolchain check broken (since the last change,
           Product: compiler-rt
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: devlists at shadowlab.org
                CC: llvmbugs at cs.uiuc.edu

To test if a toolchain is valid, the compiler-rt script uses (since r131256)
the following test:

      if $(CC) -arch $$arch -dumpversion > /dev/null; then \
        result="$$result$$arch "; \
      fi; \

Unfortunately, this test always pass when CC is clang. clang does not check the
architecture when using -dumpversion

$clang -arch foo -dumpversion

And it does not check at all if there is a suitable assembler and linker to
build the compiler-rt library.

And unfortunately again, CC is always clang when compiler-rt is compiled
automatically with clang.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list