http://llvm.org/bugs/show_bug.cgi?id=10257
Summary: clang -arch FOO is ignored
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
compiler@p35:> clang -arch ppc test.c
clang-3: warning: argument unused during compilation: '-arch ppc'
As mentioned in the clang man page and in
http://clang.llvm.org/docs/DriverInternals.html, "clang -arch FOO" should allow
specifying the target architecture.
More info:
compiler@p35:> clang -ccc-print-options -arch ppc test.c
Option 0 - Name: "-ccc-print-options", Values: {}
Option 1 - Name: "-arch", Values: {"ppc"}
Option 2 - Name: "<input>", Values: {"test.c"}
compiler@p35:> clang -ccc-print-bindings -arch ppc test.c
# "i386-pc-linux-gnu" - "clang", inputs: ["test.c"], output: "/tmp/cc-aluQvo.o"
# "i386-pc-linux-gnu" - "linux::Link", inputs: ["/tmp/cc-aluQvo.o"], output:
"a.out"
clang-3: warning: argument unused during compilation: '-arch ppc'
compiler@p35:> clang --version
SUSE Linux clang version 3.0 (trunk 132667) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix
--
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