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

             Bug #: 12518
           Summary: clang Makefile for include/clang and include/clang-c
                    has broken find pipeline
           Product: Build scripts
           Version: 3.0
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Makefiles
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 8367
  --> http://llvm.org/bugs/attachment.cgi?id=8367
The attached patch both backports trunk changes for these Makefiles to 3.0 and
adds the fixes.

The Makefiles for the clang and clang-c headers error out when using a separate
build tree because a find that won't find anything is piped into a series of
greps. grep will return 1 if it's invoked with no input (which will happen in
you're looking for include files to install in the object tree, as these only
exist in the source tree), even if it's a negative grep (-v). As this is being
used to define the list for a for loop, the simple solution is to terminate the
pipeline with "|| /usr/bin/true" so that the pipeline doesn't error out and
fail the target.

As the attached patch also backports trunk changes to 3.0, I can confirm that
this isn't resolved in the trunk.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to