[LLVMbugs] [Bug 10454] New: scientific linux not detected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 23 05:41:13 PDT 2011


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

           Summary: scientific linux not detected
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: gryzman at gmail.com
                CC: llvmbugs at cs.uiuc.edu


This seems to fix it. But the question is - why do you need to do all that
anyway ? I mean, gcc doesn't need to do that, so why would you's ?


[gj at sl64 llvm]$ svn diff -x -w tools/clang/lib/Driver/ToolChains.cpp
Index: tools/clang/lib/Driver/ToolChains.cpp
===================================================================
--- tools/clang/lib/Driver/ToolChains.cpp    (revision 135853)
+++ tools/clang/lib/Driver/ToolChains.cpp    (working copy)
@@ -1409,6 +1409,10 @@
     else if (Data.startswith("Red Hat Enterprise Linux") &&
              Data.find("release 6") != StringRef::npos)
       return RHEL6;
+    else if (Data.startswith("Scientific Linux") &&
+             Data.find("release 6") != StringRef::npos)
+      return RHEL6;
+
     else if ((Data.startswith("Red Hat Enterprise Linux") ||
           Data.startswith("CentOS")) &&
              Data.find("release 5") != StringRef::npos)

-- 
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