Commit Graph

59 Commits

Author SHA1 Message Date
Alp Toker cdb4e2b783 Define ENABLE_CLANG_EXAMPLES instead of relying on BUILD_EXAMPLES
This is a further build fix attempt for r198747 on some Makefile builders where
the value wasn't set at all.

llvm-svn: 198764
2014-01-08 13:00:32 +00:00
Bill Wendling 766d4d22ac The top-level clang Makefile is #included into other Makefiles. (sigh) So we
can't have the logic here to add in the 'tools/{driver,libclang}' directories,
because they will be added in for ALL Makefiles which #include the top-level
one. Place the logic into the 'tools' Makefile.

llvm-svn: 165103
2012-10-03 08:39:19 +00:00
Bill Wendling 32669834d3 Add the missing backslash-newline which was causing make errors.
llvm-svn: 165098
2012-10-03 08:07:20 +00:00
Bill Wendling 7e5ef83cdb Use an environment variable instead of what's in the make cmd goals.
llvm-svn: 164992
2012-10-02 06:19:15 +00:00
Bill Wendling aae78b861f Filter out tools and unittests which we don't want to build when we're building clang only.
llvm-svn: 164916
2012-09-30 11:23:30 +00:00
Peter Collingbourne bee583fd6e Add the Clang tblgen backends to Clang, and flip the switch to cause
the build systems to use clang-tblgen.

llvm-svn: 141291
2011-10-06 13:03:08 +00:00
Peter Collingbourne d937a99465 Clang-side build system infrastructure for multiple tblgens.
llvm-svn: 141267
2011-10-06 01:52:10 +00:00
Douglas Gregor cb56faf091 If you download clang and delete the test directory, you can end up
with the copy line failing with an error, yet the make will complete
successfully. From Greg Clayton!

llvm-svn: 140639
2011-09-27 21:28:10 +00:00
Daniel Dunbar b1798f7b01 Basic: Add support for a build variable to set the repository path that goes
into the Clang version.

llvm-svn: 128595
2011-03-31 00:32:50 +00:00
Jeffrey Yasskin c7da993dee Add gTest unittests to clang, and write the first one.
This is the Makefile version only; the cmake implementation is coming soon.

llvm-svn: 124777
2011-02-03 04:51:52 +00:00
Eric Christopher 7d5f2ff6c9 Fix typo.
llvm-svn: 123041
2011-01-07 22:44:49 +00:00
NAKAMURA Takumi d477fe544c Makefile: Follow r118918, to add configuration "ENABLE_DOCS".
llvm-svn: 119025
2010-11-14 03:29:27 +00:00
Daniel Dunbar 8d65fc86c4 Move lib/Runtime to runtime/, and build after everything else.
llvm-svn: 107327
2010-06-30 22:10:38 +00:00
Daniel Dunbar 69a5af21e4 Remove cruft that I didn't intend to commit.
llvm-svn: 106932
2010-06-26 00:31:14 +00:00
Daniel Dunbar c3275c5440 build: Add a generated Version.inc file instead of duplicating information.
llvm-svn: 106863
2010-06-25 17:33:46 +00:00
Chris Lattner 40ad0a2893 add a libs-only target to the clang makefile, patch by Sunay Ismail
in PR7397

llvm-svn: 106386
2010-06-19 06:35:25 +00:00
Daniel Dunbar 40fee6313d Globally disable -fno-strict-aliasing, for reasons given in the comment.
llvm-svn: 105644
2010-06-08 21:55:02 +00:00
Daniel Dunbar ee6b692551 Makefiles: Set Clang CPP compiler flags in a single location, instead of scattered throughout the project Makefiles.
llvm-svn: 105638
2010-06-08 20:44:43 +00:00
Daniel Dunbar e6c1daa8fd Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.
- This eliminates most dependencies on how Clang is installed relative to LLVM.

llvm-svn: 105637
2010-06-08 20:34:18 +00:00
Daniel Dunbar 9f84c7b600 Move include installation steps to better location, inside each include dir instead of at the top-level.
Also, don't set NO_INSTALL=1 for c-index-test.

llvm-svn: 102724
2010-04-30 17:59:38 +00:00
Kovarththanan Rajaratnam 8fc5a80905 Fix 80 col violation
llvm-svn: 98823
2010-03-18 13:56:20 +00:00
Kovarththanan Rajaratnam 5a487710b5 Simply tags target
llvm-svn: 98822
2010-03-18 13:52:43 +00:00
Chris Lattner 93f0a7dda1 add DESTDIR support for clang headers, PR6556.
Patch by Matthias Klose!

llvm-svn: 98192
2010-03-10 21:26:01 +00:00
Daniel Dunbar 01ba2a765b Improve updating of test/Makefile for out-of-dir builds.
llvm-svn: 91854
2009-12-21 23:28:06 +00:00
Daniel Dunbar ddeb7e09cb Don't try to install .dir files.
llvm-svn: 89836
2009-11-25 03:46:30 +00:00
Daniel Dunbar 9b30eb721f Add examples dir, built with BUILD_EXAMPLES=1 (Makefiles, no CMake equivalent yet).
Move tools/wpa to examples/wpa, and unbreak its build.

llvm-svn: 88825
2009-11-15 00:22:33 +00:00
Axel Naumann a7e200e6f7 Don't install Makefiles nor tablegen input in include/.
Fix exclusion of .tmp, which in turn enables installation of $(PROJ_OBJ_ROOT)/tools/clang/include/*.inc.

llvm-svn: 83855
2009-10-12 16:42:18 +00:00
Axel Naumann c5b2d917de Do not install CMakeLists.txt (nor any other txt files) into include/ subdirectories
llvm-svn: 83665
2009-10-09 20:03:20 +00:00
Douglas Gregor 01249503fe Installation of Clang libraries and headers, from Axel Naumann!
llvm-svn: 83582
2009-10-08 22:15:31 +00:00
Torok Edwin 9c9630aa88 The test/ directory needs to be created always when building objdir != srcdir,
because the toplevel 'make check-all' needs the rule for test/lit.site.cfg,
and for that test/ must exist.

llvm-svn: 82624
2009-09-23 14:23:05 +00:00
Daniel Dunbar e5a7ecc23a Move <root>/Driver into <root>/tools/clang-cc.
Again, I tried to update cmake but it is untested.

llvm-svn: 67605
2009-03-24 03:00:12 +00:00
Daniel Dunbar 0f62e98d85 Add 'make cscope.files' top level target.
llvm-svn: 67168
2009-03-18 05:59:14 +00:00
Douglas Gregor 23d75bb326 Build system changes to use TableGen to generate the various
diagnostics. This builds on the patch that Sebastian committed and
then revert. Major differences are:

  - We don't remove or use the current ".def" files. Instead, for now,
    we just make sure that we're building the ".inc" files.
  - Fixed CMake makefiles to run TableGen and build the ".inc" files
    when needed. Tested with both the Xcode and Makefile generators
    provided by CMake, so it should be solid.
  - Fixed normal makefiles to handle out-of-source builds that involve
    the ".inc" files.

I'll send a separate patch to the list with Sebastian's changes that
eliminate the use of the .def files.

llvm-svn: 67058
2009-03-16 23:06:59 +00:00
Sebastian Redl 4ae9b126fe Revert the switch to the tablegen diags. It fails for seperate objdir builds and cmake builds, and I have no clue what to do about it. Revisit this after someone with a clue about the build systems has looked at it.
llvm-svn: 67009
2009-03-14 15:58:54 +00:00
Sebastian Redl 51e037e3c4 Switch diagnostics from .def to tablegen files. Please validate the Windows build.
llvm-svn: 67007
2009-03-14 12:00:12 +00:00
Mike Stump 3f6c631ea1 Add tags; this is documented to work, just need the wiring to enable it.
llvm-svn: 64350
2009-02-12 02:25:47 +00:00
Mike Stump c9268d8eff Fix make test when configuring for a seperate build directory.
llvm-svn: 62614
2009-01-20 21:10:41 +00:00
Daniel Dunbar f6135630a8 ccc: Add installation of ccc; based on patch from Mike Stump.
- This doesn't follow normal installation procedure of python
   code, but no sense trying too hard since ccc will be moved to
   C++.

 - Entry point is now tools/ccc.

llvm-svn: 62517
2009-01-19 18:50:49 +00:00
Daniel Dunbar 086fe1ac79 Add doxygen support
- Stolen from LLVM with minor modifications

llvm-svn: 54103
2008-07-26 21:32:24 +00:00
Chris Lattner 56a7bf5a7e remove the old non-parallel test system. 'make' in clang/test now runs
the tests in parallel.

llvm-svn: 49290
2008-04-06 22:32:01 +00:00
Gabor Greif fc39f15802 Use make's -C option to enter directories.
Also, do not try to remove build/ dir when
cleaning, this does not exist any more.

llvm-svn: 48599
2008-03-20 14:43:48 +00:00
Gabor Greif f5eb286707 reduce chattyness of makefiles
llvm-svn: 48597
2008-03-20 14:28:22 +00:00
Gabor Greif 2d2b401c0e Switch over to the parallelized makefile, but keep old serial
makefile around (just change Makefile.parallel to Makefile to
get back old functionality).

To run parallel tests, specify

    make -jN test # where N = num of CPUs * 2

to get detailed output, run

    make -jN test VERBOSE=1

to only get error descriptions *after the tests have run*, type

    make report

this gives you the extra information which was omitted in non-VERBOSE
mode.

llvm-svn: 48486
2008-03-18 06:14:16 +00:00
Chris Lattner 7a51313d8a Make a major restructuring of the clang tree: introduce a top-level
lib dir and move all the libraries into it.  This follows the main
llvm tree, and allows the libraries to be built in parallel.  The
top level now enforces that all the libs are built before Driver,
but we don't care what order the libs are built in.  This speeds
up parallel builds, particularly incremental ones.

llvm-svn: 48402
2008-03-15 23:59:48 +00:00
Chris Lattner c16b6b2eab Build the clang headers.
llvm-svn: 47834
2008-03-03 01:23:30 +00:00
Chris Lattner e27d865e36 Initial checkin of rewriter interface. It is just stubbed out for now.
llvm-svn: 41990
2007-09-15 22:21:22 +00:00
Ted Kremenek e80505643d Added libClangAnalysis
llvm-svn: 41742
2007-09-06 15:58:13 +00:00
Chris Lattner 8ecc9f60b2 Make check conflicts with the other default llvm target, 'make check' will come later I guess.
llvm-svn: 39900
2007-07-16 04:30:36 +00:00
Chris Lattner 55d278cef9 'make check' is what more people expect.
llvm-svn: 39899
2007-07-16 04:26:57 +00:00
Chris Lattner f97fe38cb5 Initial scaffolding for an -emit-llvm mode. This requires the LLVM VMCore
library to be built for the driver to link.

llvm-svn: 39495
2007-05-24 06:29:05 +00:00