[LLVMbugs] [Bug 11278] New: Make llvm-ld fallback to clang when gcc is not found
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 31 08:52:40 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11278
Bug #: 11278
Summary: Make llvm-ld fallback to clang when gcc is not found
Product: tools
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-ld
AssignedTo: unassignedbugs at nondot.org
ReportedBy: maruel at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7559
--> http://llvm.org/bugs/attachment.cgi?id=7559
Try to find clang if gcc is not found
Repro:
- On a system without gcc installed (like Windows):
- Build llvm+clang with MSVS2010. I used MinSizeRel configuration but it
shouldn't matter.
- Add ...\build\bin\MinSizeRel to PATH to make sure all llvm tools and clang
are in PATH.
- echo int main() { return 0; } > hello.c
- clang -c hello.c -emit-llvm -o hello.bc
- llc -filetype=obj hello.bc
- llvm-ld hello.obj -o=hello.ld.exe -native
Result:
llvm-ld: Failed to find gcc
Expected:
Uses clang.
Notes:
I kept the behavior to try to find gcc first and only fallback to clang if gcc
is not found to reduce the side-effects of this patch.
--
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