Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use ld directly on linux. Changes from the previous try: | Rafael Espindola | 2010-11-07 | 1 | -0/+12 | |
| | | | | | | | | | | | | | | | | | *) Try to detect as much as possible from the system itself, not the distro. This should make it easier to port to a new distro and more likely to work on a unknown one. *) The distro enum now doesn't include the arch. Just use the existing host detection support in LLVM. *) Correctly handle --sysroot. A small regression is that now clang will pass bitcode file to the linker. This is necessary for the gold plugin support to work. It might be better to detect this at configure/cmake time, but doing it in c++ first is a lot easier. llvm-svn: 118382 | |||||
* | Revert while I debug test failures :-( | Rafael Espindola | 2010-11-03 | 1 | -12/+0 | |
| | | | | llvm-svn: 118150 | |||||
* | Switch clang to run ld directly on linux. I tested this on all the linux | Rafael Espindola | 2010-11-03 | 1 | -0/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | distros listed by running gcc main.o -o main g++ main.o -o main gcc main.o -o main -static g++ main.o -o main -static gcc f.o -o f.so -shared g++ f.o -o f.so -shared and comparing the ld line with the one created by clang. I also added -m32/m64 in distros that support it. While I tested many distros, there will always be more. If you are hit by this it should be somewhat easy to add your distro. If you are in a hurry, do revert this, but please inform how to detect you distro and the ld command lines produced by the above gcc invocations. Most distros have some patches on gcc :-( llvm-svn: 118149 | |||||
* | Driver/Darwin: Make the compilation object available in AddLinkArgs. | Daniel Dunbar | 2010-09-09 | 1 | -1/+2 | |
| | | | | llvm-svn: 113549 | |||||
* | Visual Studio tools used on win32 hosts when targeting win32. | Michael J. Spencer | 2010-08-21 | 1 | -0/+16 | |
| | | | | llvm-svn: 111748 | |||||
* | Run the assembler instead of gcc on Linux. | Rafael Espindola | 2010-08-10 | 1 | -0/+16 | |
| | | | | llvm-svn: 110635 | |||||
* | Driver: Add Compilation::addCommand and switch tools to using it, now that we | Daniel Dunbar | 2010-08-02 | 1 | -19/+0 | |
| | | | | | | don't have to deal with nested jobs. llvm-svn: 110015 | |||||
* | Driver: Eliminate now unnecessary tool hooks for whether they accept piped ↵ | Daniel Dunbar | 2010-08-02 | 1 | -44/+0 | |
| | | | | | | input/output. llvm-svn: 110012 | |||||
* | add driver support for minix, patch by Kees van Reeuwijk | Chris Lattner | 2010-07-07 | 1 | -0/+35 | |
| | | | | | | from PR7583 llvm-svn: 107788 | |||||
* | Driver: Add an explicit dsymutil action. | Daniel Dunbar | 2010-06-04 | 1 | -0/+17 | |
| | | | | llvm-svn: 105474 | |||||
* | Driver: Add Tool::ShortName, intended to be a human readable name for the tool. | Daniel Dunbar | 2010-05-22 | 1 | -23/+38 | |
| | | | | llvm-svn: 104416 | |||||
* | Driver: Add a tool definition for the Clang integrated assembler. | Daniel Dunbar | 2010-05-20 | 1 | -0/+20 | |
| | | | | llvm-svn: 104280 | |||||
* | VISIBILITY_HIDDEN was renamed LLVM_LIBRARY_VISIBILITY. | Duncan Sands | 2010-05-11 | 1 | -22/+22 | |
| | | | | llvm-svn: 103494 | |||||
* | Driver: Add a Tool::hasGoodDiagnostics hook, and use it to simplify logic for | Daniel Dunbar | 2010-04-06 | 1 | -0/+5 | |
| | | | | | | | | deciding when we need to emit an extra "command failed" diagnostic. - This also fixes the case where we were emitting that extra diagnostics, even when using clang w/ the integrated assembler, which has good diagnostics. llvm-svn: 100529 | |||||
* | Add in some more MIPS command line options. | Eric Christopher | 2010-03-02 | 1 | -0/+1 | |
| | | | | | | Patch by Oleksandr Tymoshenko! llvm-svn: 97544 | |||||
* | Driver: Add -[no-]integrated-as for clang. | Daniel Dunbar | 2010-02-03 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | - Requires backend support, which only exists for i386--darwin currently. No 'as' required: -- ddunbar@ozzy:tmp$ cat t.c int main() { return 42; } ddunbar@ozzy:tmp$ clang -m32 -integrated-as t.c ddunbar@ozzy:tmp$ ./a.out; echo $? 42 ddunbar@ozzy:tmp$ -- The random extra whitespace is how you know its working! :) llvm-svn: 95194 | |||||
* | Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bc | Daniel Dunbar | 2010-01-25 | 1 | -6/+12 | |
| | | | | | | file. llvm-svn: 94463 | |||||
* | Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going to | Daniel Dunbar | 2010-01-22 | 1 | -1/+0 | |
| | | | | | | diverge from gcc anyway. llvm-svn: 94138 | |||||
* | Remove ';' after method definition. Noticed by clang++, which one would think | Daniel Dunbar | 2009-12-19 | 1 | -1/+1 | |
| | | | | | | | would have a higher respect for its own code. This is getting old, is this warning really adding value? llvm-svn: 91779 | |||||
* | ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=. | Daniel Dunbar | 2009-09-10 | 1 | -0/+1 | |
| | | | | llvm-svn: 81429 | |||||
* | Move Clang X86 cpu/feature argument translation into AddX86TargetArgs. | Daniel Dunbar | 2009-09-09 | 1 | -0/+2 | |
| | | | | llvm-svn: 81390 | |||||
* | Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch ↵ | Daniel Dunbar | 2009-09-09 | 1 | -16/+21 | |
| | | | | | | there. llvm-svn: 81367 | |||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -50/+50 | |
| | | | | llvm-svn: 81346 | |||||
* | Rename Darwin_X86 toolchain to just Darwin, this can support all platforms. | Daniel Dunbar | 2009-09-04 | 1 | -2/+4 | |
| | | | | llvm-svn: 81016 | |||||
* | Remove unused argument. | Daniel Dunbar | 2009-09-04 | 1 | -6/+2 | |
| | | | | llvm-svn: 81010 | |||||
* | Second half of, clang, AuroraUX toolchain support. | Edward O'Callaghan | 2009-08-22 | 1 | -4/+38 | |
| | | | | llvm-svn: 79713 | |||||
* | OpenBSD support. | Daniel Dunbar | 2009-06-29 | 1 | -0/+34 | |
| | | | | | | - Patch by Jonathan Gray! llvm-svn: 74453 | |||||
* | DragonFly ToolChain definition for driver. | Daniel Dunbar | 2009-05-02 | 1 | -0/+34 | |
| | | | | | | - Patch by Alex Hornung! llvm-svn: 70635 | |||||
* | Preliminary PCH support in the driver | Douglas Gregor | 2009-04-18 | 1 | -1/+4 | |
| | | | | llvm-svn: 69410 | |||||
* | Driver: Split out CPP specific options for clang so that we don't end | Daniel Dunbar | 2009-04-08 | 1 | -0/+5 | |
| | | | | | | | | up adding them twice when running with -no-integrated-cpp or -save-temps. - <rdar://problem/6766636> -save-temps falls over with prefix headers llvm-svn: 68660 | |||||
* | Driver: Add freebsd::Link | Daniel Dunbar | 2009-04-01 | 1 | -0/+15 | |
| | | | | | | - Patch by Ed Schouten! llvm-svn: 68233 | |||||
* | Driver: Call 'as' directly on FreeBSD. | Daniel Dunbar | 2009-03-31 | 1 | -0/+19 | |
| | | | | | | - Patch by Ed Schouten! llvm-svn: 68121 | |||||
* | Improve dependency file support. | Daniel Dunbar | 2009-03-30 | 1 | -6/+8 | |
| | | | | | | | | | | | | - Rip out various bits of logic from clang-cc's dependency file gen, force driver to provide instead. - -MD output now goes to proper location <rdar://problem/6723948> clang -MD puts dep file in /tmp with wrong name - -M and -MM still don't work correctly. llvm-svn: 68022 | |||||
* | Driver: Finish porting Darwin::Preprocess and Compile port (still | Daniel Dunbar | 2009-03-29 | 1 | -8/+14 | |
| | | | | | | | unused, and lacking a test case). - ccc is now on death row, pending some more testing and bug fixes. llvm-svn: 68012 | |||||
* | Driver: Start porting Darwin::Preprocess and Compile implementations | Daniel Dunbar | 2009-03-29 | 1 | -0/+49 | |
| | | | | | | (currently unused). llvm-svn: 68003 | |||||
* | Driver: Add darwin::Link tool. | Daniel Dunbar | 2009-03-26 | 1 | -0/+32 | |
| | | | | | | | - <rdar://problem/6717381> [driver] implement ld argument translation in new driver llvm-svn: 67760 | |||||
* | Driver: Add and use darwin::Assemble tool. | Daniel Dunbar | 2009-03-20 | 1 | -1/+17 | |
| | | | | | | - Based on patch from Pieter de Bie; thanks! llvm-svn: 67379 | |||||
* | Driver: Add darwin::Lipo tool. | Daniel Dunbar | 2009-03-20 | 1 | -0/+18 | |
| | | | | llvm-svn: 67355 | |||||
* | Driver: Lift out common GCC tool and implement generic GCC tool | Daniel Dunbar | 2009-03-18 | 1 | -38/+31 | |
| | | | | | | | | argument translation. Also, stub out clang tool implementation a bit more. llvm-svn: 67185 | |||||
* | Driver: ConstructJob also needs to know the destination (where to put | Daniel Dunbar | 2009-03-18 | 1 | -0/+6 | |
| | | | | | | its commands). llvm-svn: 67179 | |||||
* | Driver: Add a dash of const. | Daniel Dunbar | 2009-03-18 | 1 | -6/+12 | |
| | | | | llvm-svn: 67170 | |||||
* | Driver: Stub out Tool::ConstructJob. | Daniel Dunbar | 2009-03-18 | 1 | -0/+30 | |
| | | | | llvm-svn: 67169 | |||||
* | Driver: Add name to Tool (for testing/debugging) and move GCC_* tools | Daniel Dunbar | 2009-03-17 | 1 | -11/+14 | |
| | | | | | | into gcc:: namespace. llvm-svn: 67120 | |||||
* | Driver: GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace. | Daniel Dunbar | 2009-03-17 | 1 | -7/+7 | |
| | | | | llvm-svn: 67110 | |||||
* | Driver: Stub out generic GCC tool selection (missed a file) | Daniel Dunbar | 2009-03-17 | 1 | -0/+79 | |
llvm-svn: 67109 |