Daniel Dunbar
49cee27d34
build/Make: Define a TARGET_NATIVE_ARCH variable to be a bit more precise than
...
ARCH, which gets tested in many more contexts.
llvm-svn: 144434
2011-11-12 00:18:02 +00:00
Daniel Dunbar
bd02be5f45
build/Make: Change llvm-config-2 to be compiled as a build tool.
...
llvm-svn: 144421
2011-11-11 22:59:49 +00:00
Daniel Dunbar
1f7c44f88e
cross-build/Make: Update cross build to properly forward ARCH and
...
TARGETS_TO_BUILD variables to build tools submake, and also tweak echo command
to indicate when we are compiling/etc build tools.
llvm-svn: 144419
2011-11-11 22:59:45 +00:00
Eric Christopher
8dc004003a
Add an option '--enable-libcpp' that will have the compiler pass on
...
options to use libc++ as the default c++ library.
llvm-svn: 144413
2011-11-11 22:51:42 +00:00
Daniel Dunbar
81117aed37
build/Make: Try to switch over to llvm-config-2 again, now that I've cleaned up
...
some more of the explicit dependencies. I'm staging things more slowly this time
in case there is more unanticipated fallout.
llvm-svn: 144323
2011-11-10 22:11:04 +00:00
Daniel Dunbar
745409c62f
Revert r144300 "llvm-config: Replace with C++ version (was llvm-config-2).",
...
which didn't appear ready for prime time.
llvm-svn: 144309
2011-11-10 19:59:35 +00:00
Daniel Dunbar
e9f2479115
llvm-config: Replace with C++ version (was llvm-config-2).
...
llvm-svn: 144300
2011-11-10 18:49:59 +00:00
Daniel Dunbar
03dc3712f3
build/Make: Update for rename of show-diagnostics.
...
llvm-svn: 143564
2011-11-02 19:48:19 +00:00
David Blaikie
2145251624
Updating 'update' target to handle svn 1.7 'info' output. Patch by Jean-Danial Dupas!
...
llvm-svn: 142535
2011-10-19 18:35:30 +00:00
Peter Collingbourne
da02db0a55
Add clang-tblgen to OPTIONAL_DIRS when building native tools for the
...
cross build, so that a native version of clang-tblgen is available.
Should unbreak Clang cross build.
Also disable Polly for the native tool build, since it depends on
external libraries which may not be available, and it isn't required
anyway.
llvm-svn: 141454
2011-10-08 00:27:38 +00:00
Peter Collingbourne
01246536d9
Move TableGen's parser and entry point into a library
...
This is the first step towards splitting LLVM and Clang's tblgen executables.
llvm-svn: 140951
2011-10-01 16:41:13 +00:00
Eric Christopher
92ffa08e9a
Remove llvmc and assorted build machinery for it.
...
The problems that llvmc solved have largely been subsumed with the
tasks that the clang driver can accomplish, but llvmc lacks flexibility
and depends too heavily on the EOL'd llvm-gcc.
llvm-svn: 140093
2011-09-19 23:22:41 +00:00
Bill Wendling
9d6c2c7a40
Install libprofile_rt.dylib where it's more available for gcov support.
...
<rdar://problem/9583891>
llvm-svn: 132860
2011-06-10 21:47:14 +00:00
Daniel Dunbar
a01ae2f598
build: Add support for a SHOW_DIAGNOSTICS build variable.
...
If enabled, this will attempt to use the CC_LOG_DIAGNOSTICS feature I dropped
into Clang to print a log of all the diagnostics generated during an individual
build (from the top-level). Not sure if this will actually be useful, but for
now it is handy for testing the option.
llvm-svn: 129312
2011-04-11 22:37:39 +00:00
Michael J. Spencer
d5ec932c3a
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
Daniel Dunbar
e0e2ddaedc
build/Makefiles: Don't build unittests when ONLY_TOOLS is set.
...
llvm-svn: 120196
2010-11-27 06:59:16 +00:00
Rafael Espindola
c2eb6da056
Add --enable-docs. Patch by NAKAMURA Takumi.
...
llvm-svn: 118918
2010-11-12 19:24:06 +00:00
Mikhail Glushenkov
10302168ea
llvmc: remove dynamic plugins.
...
llvm-svn: 111094
2010-08-15 07:07:12 +00:00
Daniel Dunbar
574e92e907
tests: Kill off custom targets which were just there for TestRunner.sh.
...
llvm-svn: 110003
2010-08-02 00:52:44 +00:00
Bob Wilson
b209e3d8d2
Add support for a new Apple-style build target, EmbeddedSim, that builds
...
llvmCore for the iOS Simulator.
llvm-svn: 108922
2010-07-20 20:44:02 +00:00
Daniel Dunbar
bf6ad6f06f
build/Clang: Build and install libLTO as part of clang-only/install-clang targets.
...
llvm-svn: 108493
2010-07-16 01:29:50 +00:00
Duncan Sands
bf3a1f45c3
Issue the warning about being slow whenever optimization is disabled,
...
and not just for Debug+Asserts builds.
llvm-svn: 107792
2010-07-07 16:48:16 +00:00
Gabor Greif
84c77d994d
adapt condition for changed default build mode
...
who knows how to cover Asserts or Debug separately
please do not hesitate to extend this
llvm-svn: 107779
2010-07-07 14:37:04 +00:00
Duncan Sands
eb15d2084a
Rename "Release" builds as "Release+Asserts"; rename "Release-Asserts"
...
builds to "Release". The default build is unchanged (optimization on,
assertions on), however it is now called Release+Asserts. The intent
is that future LLVM releases released via llvm.org will be Release builds
in the new sense, i.e. will have assertions disabled (currently they have
assertions enabled, for a more than 20% slowdown). This will bring them
in line with MacOS releases, which ship with assertions disabled. It also
means that "Release" now means the same things in make and cmake builds:
cmake already disables assertions for "Release" builds AFAICS.
llvm-svn: 107758
2010-07-07 07:48:00 +00:00
Daniel Dunbar
ca0b5f4232
build: Update install-clang target.
...
llvm-svn: 107334
2010-06-30 22:22:46 +00:00
Daniel Dunbar
deb67461c0
Update for CIndex rename.
...
llvm-svn: 102803
2010-04-30 23:36:47 +00:00
Daniel Dunbar
81745b2e67
Add an install-clang-c top-level target, which does a Clang C API install.
...
llvm-svn: 102751
2010-04-30 20:04:45 +00:00
Jim Grosbach
5d2852cdd0
cross-build Makefile needs to unset CFLAGS/CXXFLAGS when building the build-side utilities since the flags will be for the cross-compiler.
...
llvm-svn: 102225
2010-04-24 00:46:14 +00:00
Gabor Greif
7ea6b0d132
modernize the do-all-for-me target to run lit
...
llvm-svn: 99148
2010-03-21 22:23:02 +00:00
Jeffrey Yasskin
f073920691
Try r96559 for the third time. This time the shared library is only built if
...
--enable-shared is passed to configure.
llvm-svn: 97119
2010-02-25 06:34:33 +00:00
Jeffrey Yasskin
82c2f2fd24
Roll back r96959 again.
...
llvm-svn: 96981
2010-02-23 20:53:37 +00:00
Jeffrey Yasskin
e653785a3d
Roll r96559 forward again, adding libLLVM-2.7svn.so to LLVM. This links 3 of
...
the examples shared to make sure the shared library keeps working.
llvm-svn: 96959
2010-02-23 18:10:07 +00:00
Daniel Dunbar
9774a591a4
Kill off LLVMGCC_MAJVERS make variable.
...
llvm-svn: 96907
2010-02-23 07:56:22 +00:00
Jeffrey Yasskin
e4b750f830
Roll back the shared library, r96559. It broke two darwins and arm, mysteriously.
...
llvm-svn: 96569
2010-02-18 04:43:02 +00:00
Jeffrey Yasskin
64b33dd9b7
Add a shared library for LLVM, named libLLVM2.7svn.(so|dylib), and add an
...
--enable-shared configure flag to have the tools linked shared. (2.7svn is just
$(LLVMVersion) so it'll change to "2.7" in the release.) Always link the
example programs shared to test that the shared library keeps working.
On my mac laptop, Debug libLLVM2.7svn.dylib is 39MB, and opt (for example) is
16M static vs 440K shared.
Two things are less than ideal here:
1) The library doesn't include any version information. Since we expect to break
the ABI with every release, this shouldn't be much of a problem. If we do
release a compatible 2.7.1, we may be able to hack its library to work with
binaries compiled against 2.7.0, or we can just ask them to recompile. I'm
hoping to get a real packaging expert to look at this for the 2.8 release.
2) llvm-config doesn't yet have an option to print link options for the shared
library. I'll add this as a subsequent patch.
llvm-svn: 96559
2010-02-18 02:36:02 +00:00
Daniel Dunbar
39f85e6a96
For 'install-clang' target, also traverse tools/clang/lib/Runtime.
...
llvm-svn: 93958
2010-01-20 00:43:07 +00:00
Daniel Dunbar
ed743f6524
Update install-clang target for clang-cc removal.
...
llvm-svn: 91226
2009-12-12 21:17:54 +00:00
Daniel Dunbar
7f52922e77
Add the rest of the build system logic for optional target disassemblers
...
llvm-svn: 89841
2009-11-25 04:46:58 +00:00
Daniel Dunbar
f3784a8781
Don't build examples by default, use BUILD_EXAMPLES=1 to build them. The only utility of this is testing that we keep the examples up to date, I will just make the buildbots run with this flag.
...
llvm-svn: 88979
2009-11-16 22:38:00 +00:00
Jim Grosbach
e0e5896a29
When cross-building, the CFLAGS and CXXFLAGS are for the target, and don't
...
apply to the build tools. If we want to allow build tool flags input, we
should have separate inputs (BUILD_CFLAGS and BUILD_CXXFLAGS, perhaps).
llvm-svn: 85607
2009-10-30 19:53:38 +00:00
Jim Grosbach
7f05d433e0
Remove extraneous comment line
...
llvm-svn: 85606
2009-10-30 19:52:05 +00:00
Jim Grosbach
85fb2965a5
update name check for Apple style builds to be more permissive
...
llvm-svn: 85605
2009-10-30 19:51:32 +00:00
Chandler Carruth
766362c707
Move DataTypes.h to include/llvm/System, update all users. This breaks the last
...
direct inclusion edge from System to Support.
llvm-svn: 85086
2009-10-26 01:35:46 +00:00
Chandler Carruth
88cbba7934
Remove stale reference to ThreadSupport.h.
...
llvm-svn: 85082
2009-10-25 23:41:56 +00:00
Stuart Hastings
89d8dc1bde
Trying again to tweak the top-level Makefile to facilitate an Apple-style build.
...
Now with Clang-compatibility.
llvm-svn: 84872
2009-10-22 17:22:37 +00:00
Daniel Dunbar
25f8a7e4fd
Revert "Tweak top-level Makefile to facilitate Apple-style build.", this is
...
breaking Clang's Apple-style build.
llvm-svn: 84592
2009-10-20 02:23:13 +00:00
Stuart Hastings
0e0c090f5d
Tweak top-level Makefile to facilitate Apple-style build.
...
llvm-svn: 84507
2009-10-19 17:53:54 +00:00
Mikhail Glushenkov
684fcbea02
Reconfigure automatically when Base.td.in is changed.
...
Thanks to Chris for heads-up!
llvm-svn: 83613
2009-10-09 02:40:01 +00:00
Torok Edwin
9d7a492755
Speed up clang-only link, by really linking only clang, and not the unittests
...
too.
llvm-svn: 82873
2009-09-26 20:18:58 +00:00
Daniel Dunbar
49c00ccc78
Build (not test) the unittests as part of a normal build.
...
- 'make unittests' still builds and tests.
- 'make unitcheck' inside a unittest directory runs the tests in that directory.
llvm-svn: 81725
2009-09-13 22:39:27 +00:00