summaryrefslogtreecommitdiffstats
path: root/clang/tools/ccc/ccclib/Driver.py
Commit message (Collapse)AuthorAgeFilesLines
* ccc is dead.Daniel Dunbar2009-05-021-873/+0
| | | | llvm-svn: 70649
* ccc/Driver: .s defaults to 'assembler-with-cpp' on Darwin.Daniel Dunbar2009-03-201-1/+1
| | | | | | | | | | - <rdar://problem/6669441> ccc doesn't handle assembler-with-cpp semantics correctly (but clang supports it) - This is sad, because it requires a fairly useless target hook. C'est la vie. llvm-svn: 67418
* ccc: Handle limited forms of -ccc-host-triple for testingDaniel Dunbar2009-03-131-0/+14
| | | | | | compatibility with C++ rewrite. llvm-svn: 66938
* ccc: Don't print the arch for every action when printing phases.Daniel Dunbar2009-03-131-5/+3
| | | | llvm-svn: 66886
* ccc/Driver: Mark {dump{machine,specs,version},Daniel Dunbar2009-03-131-13/+0
| | | | | | | print-{multi-{directory,lib,os-directory}, search-dirs} as unsupported instead of handling separately. llvm-svn: 66848
* ccc: Fix -ccc-print-phases when doing a universal build.Daniel Dunbar2009-03-121-5/+6
| | | | llvm-svn: 66792
* Driver: Handle magic -ccc- options.Daniel Dunbar2009-03-101-3/+0
| | | | | | | - Follows ccc currently, but this functionality should eventually be outside the Driver lib. llvm-svn: 66575
* Fix thinko. *cough* ofcourseItestedit *cough*Daniel Dunbar2009-03-061-3/+2
| | | | llvm-svn: 66283
* Tidy file removal cleanup & remove race condition on file existence.Daniel Dunbar2009-03-061-9/+17
| | | | llvm-svn: 66281
* ccc: Don't remove result files on error when -save-temps is present.Daniel Dunbar2009-02-231-4/+5
| | | | llvm-svn: 65349
* ccc: Remove temporary files used in compilation, and removeDaniel Dunbar2009-02-221-3/+29
| | | | | | compilation results on failures. llvm-svn: 65254
* ccc: Give nicer error when spawning a subprocess fails.Daniel Dunbar2009-02-191-6/+17
| | | | llvm-svn: 65075
* ccc: Suffix for PCH files is appended, not replaced.Daniel Dunbar2009-02-131-3/+6
| | | | llvm-svn: 64466
* One more tweak to account for gluing together llvm and clang into one.Mike Stump2009-02-111-0/+1
| | | | llvm-svn: 64276
* More version experimentation.Mike Stump2009-02-111-1/+4
| | | | llvm-svn: 64271
* Run a little experiment with version numbers.Mike Stump2009-02-111-1/+1
| | | | llvm-svn: 64268
* ccc: Implement special language recognition handling for -.Daniel Dunbar2009-02-051-14/+22
| | | | | | - <rdar://problem/6551577> [ccc] require -x with - llvm-svn: 63901
* ccc: -ObjC and -ObjC++ change default language, but only for "sourceDaniel Dunbar2009-02-041-0/+13
| | | | | | files". llvm-svn: 63727
* ccc: Mark -combine option as unsupported.Daniel Dunbar2009-01-301-4/+0
| | | | llvm-svn: 63348
* ccc: Embrace destiny as a clang compiler driver.Daniel Dunbar2009-01-291-9/+16
| | | | | | | | | | | | | | | | | | | | | This redoes the default mode that ccc runs in w.r.t. using clang. Now ccc defaults to always using clang for any task clang can handle. However, the following options exist to tweak this behavior: -ccc-no-clang: Don't use clang at all for compilation (still used for static analysis). -ccc-no-clang-cxx: Don't use clang for C++ and Objective-C++ inputs. -ccc-no-clang-cpp: Don't use clang as a preprocessor. -ccc-clang-archs <archs>: If present, only use clang for the given comma separated list of architectures. This only works on Darwin for now. Note that all -ccc options must be first on the command line. llvm-svn: 63346
* ccc: Support -v; invent a version number for ccc for now, will beDaniel Dunbar2009-01-281-6/+18
| | | | | | shared with clang eventually. llvm-svn: 63220
* ccc: Normalize machine name to i386 for platforms which report theDaniel Dunbar2009-01-271-0/+2
| | | | | | machine as x86_64. llvm-svn: 63122
* ccc: Recognize -emit-llvm [-S].Daniel Dunbar2009-01-261-9/+16
| | | | | | | - Unlike llvm-gcc, this doesn't yet treat -emit-llvm output as a linker input. llvm-svn: 63014
* ccc: Support long ('--...') flag arguments.Daniel Dunbar2009-01-231-0/+1
| | | | | | | - Curiously, a number of the current translations gcc does appear to be useless? llvm-svn: 62831
* ccc: Bug fix, driver logic was allowing child jobs to pipe output whenDaniel Dunbar2009-01-221-3/+3
| | | | | | parent wasn't expecting it. llvm-svn: 62811
* ccc: Handle a few long argument form (--) translations using optionDaniel Dunbar2009-01-211-4/+2
| | | | | | groups, and fix misdeclaration of some -W options. llvm-svn: 62702
* ccc: Implement file & path searching.Daniel Dunbar2009-01-211-33/+33
| | | | | | | | - Toolchain is responsible for providing list of prefixes to search. - Implement -print-file-name=xxx and -print-prog-name=xxx driver options. llvm-svn: 62659
* ccc: Add --analyze driver mode (for running static analyzer).Daniel Dunbar2009-01-211-4/+19
| | | | | | | | | | | - For now forces generation of plist files, need to think about the right interface. - Changed -fsyntax-only mode to be its own phase (more consistent). - Add -WA, for passing options verbatim to analyzer. llvm-svn: 62649
* ccc: Unbreak -pipe handling broken in previous refactoring.Daniel Dunbar2009-01-211-3/+3
| | | | llvm-svn: 62637
* ccc: Allow downstream tools to be aware of final output name.Daniel Dunbar2009-01-201-62/+76
| | | | | | | | | | | | | - This is a hack to allow the Darwin linker to get -final_output when doing universal builds; the mechanism should be generalized. - Handle multiple redundant -arch arguments correctly. - Forward -arch_multiple and -final_output to gcc when necessary. - Simplified implementation of derived gcc tools. llvm-svn: 62618
* ccc: PCH generation doesn't strip the path when generating a derivedDaniel Dunbar2009-01-201-1/+7
| | | | | | filename from the input path. llvm-svn: 62569
* ccc: Recognize that -M and -MM only run preprocessor.Daniel Dunbar2009-01-201-4/+4
| | | | | | | - Clean up some placement of output args to match gcc more precisely (for testing). llvm-svn: 62566
* ccc: Darwin/x86: Add direct cpp support.Daniel Dunbar2009-01-201-0/+1
| | | | | | | | | | - Add Darwin_X86_CC1Tool which is shared by Darwin/x86/Compile and Darwin/x86/Preprocess tools. - Minor bug fixes (CmpDriver exit code, -x cpp-output handling, some linker argument translation). llvm-svn: 62551
* ccc: Bug fix, pch generation should not try to output on pipe and -EDaniel Dunbar2009-01-181-4/+4
| | | | | | should. This needs cleanup. llvm-svn: 62473
* Make CCC_ECHO output to stderrAnders Carlsson2009-01-181-3/+3
| | | | llvm-svn: 62452
* ccc: Support running piped jobs (-pipe now works).Daniel Dunbar2009-01-171-2/+26
| | | | llvm-svn: 62396
* ccc: Don't be pedantically compatible with -Z options, these are theDaniel Dunbar2009-01-171-0/+5
| | | | | | result of an internal implementation detail of gcc. llvm-svn: 62389
* ccc: Clean up (user level) error handling.Daniel Dunbar2009-01-161-23/+27
| | | | | | | | - ccc now checks for existence of input files (more annoying to test, but matches gcc). - Fix some test cases. llvm-svn: 62378
* ccc: Fix thinko, add gross but effective test of translation for Darwin/X86/cc1.Daniel Dunbar2009-01-161-1/+1
| | | | llvm-svn: 62360
* ccc: Add -ccc-echo special option, and support pulling CCC_CLANG,Daniel Dunbar2009-01-141-0/+23
| | | | | | CCC_ECHO, and CCC_FALLBACK from environment as ccc (old) did. llvm-svn: 62207
* ccc: Add dummy Clang/Compile tool and use on Darwin/X86 for C files.Daniel Dunbar2009-01-141-2/+11
| | | | llvm-svn: 62204
* ccc: Darwin: Implement some important general argument translationsDaniel Dunbar2009-01-131-1/+1
| | | | | | | | for the Darwin tool chain. - Ideally we would localize these to tool specific argument processing but for now this matches gcc closely. llvm-svn: 62181
* ccc: Allow internal tool chain specific argument translation.Daniel Dunbar2009-01-131-43/+12
| | | | | | | | | | - Pulled -Xarch processing into this. - Get rid of manual creation of forwarding arg array. - Use Darwin/CC1 instead of generic GCC cc1 on X86. llvm-svn: 62172
* ccc: Bug fix and gcc compatibility tweak.Daniel Dunbar2009-01-131-1/+4
| | | | | | | | | | - --gstabs only goes to Darwin/Assembler when dealing with an assembly file from the command line. - Relative placement of -o option for cc1 moves depending on -fsyntax-only/-S, how quaint. llvm-svn: 62152
* ccc: Allow host to over-ride default arch based on command lineDaniel Dunbar2009-01-131-1/+1
| | | | | | arguments (e.g., -m32 and -m64). llvm-svn: 62145
* ccc: Add leading space in -### output to match gcc.Daniel Dunbar2009-01-121-3/+3
| | | | llvm-svn: 62097
* ccc: (Darwin) Start implementing argument translation forDaniel Dunbar2009-01-121-1/+7
| | | | | | Darwin/Compile tool. llvm-svn: 62085
* ccc: When constructing a named output, only use base name (not fullDaniel Dunbar2009-01-121-1/+1
| | | | | | path). llvm-svn: 62083
* ccc: Generalize Darwin/Link tool based on Darwin version.Daniel Dunbar2009-01-121-1/+10
| | | | llvm-svn: 62078
* ccc: Support arguments which behave like linker inputs.Daniel Dunbar2009-01-121-7/+12
| | | | | | | | | | | | | | | - Support comma joined options which magically turn into multiple value arguments (e.g., -Wl,) - Split out separate Arg::render routine for when an argument is being rendered as an input (as opposed to in its original form). - Add option flag for options which should be rendered without the option when they are used as an input (e.g., -Xlinker or -o). - Support -weak-l..., -weak_framework, and -weak_library. llvm-svn: 62075
OpenPOWER on IntegriCloud