[LLVMbugs] [Bug 9833] New: broken lit substitutions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 3 10:00:53 PDT 2011


           Summary: broken lit substitutions
           Product: Test Suite
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bob.wilson at apple.com
                CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org

If I build llvm+clang in a directory ending with "-clang", e.g.,
"objdir-clang", the lit tool substitutes the full path of clang for that
"clang" suffix.  This happens for every instance of "clang" is a command, not
just for the program name.  For example, I see include paths like:


even though the site.exp file shows:

    -I /Volumes/LocalHD/bwilson/llvm/objdir-clang/include

I think the problem is here:

    # Extract the tool name from the pattern.  This relies on the tool
    # name being surrounded by \b word match operators.  If the
    # pattern starts with "| ", include it in the string to be
    # substituted.
    substitution = re.sub(r"^(\\)?((\| )?)\W+b([0-9A-Za-z-_]+)\\b\W*$",
                          r"\2" + llvm_tools_dir + "/" + r"\4",

but my Python skills are not great and that's a big ugly regexp.

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