[LLVMbugs] [Bug 21360] New: -print-multi-directory prints several instead of one

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 23 12:13:07 PDT 2014


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

            Bug ID: 21360
           Summary: -print-multi-directory prints several instead of one
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: dschuff at google.com, kcc at google.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The purpose of -print-multi-directory is to determine which one of the multilib
subdirs the particular set of other flags will cause to be searched.  It's
useless if it doesn't select the right one.  Clang just prints all the
possibilities, separate by newlines.  This completely defeats the whole purpose
of the flag, and breaks all scripts that use it.

clang version 3.6.0 (218707)
Target: x86_64-unknown-linux-gnu

$ gcc -print-multi-directory
.
$ gcc -m64 -print-multi-directory
.
$ gcc -m32 -print-multi-directory
32
$ gcc -mx32 -print-multi-directory
x32
$ clang -print-multi-directory
.
32
x32
$ clang -m64 -print-multi-directory
.
32
x32
$ clang -m32 -print-multi-directory
.
32
x32
$ clang -mx32 -print-multi-directory
.
32
x32
$

-- 
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/20141023/b865f5dd/attachment.html>


More information about the llvm-bugs mailing list