summaryrefslogtreecommitdiff
path: root/Makefile.rules
AgeCommit message (Collapse)AuthorFilesLines
2011-11-28Add an optional separate install prefix for internal components. rdar://10217046Bob Wilson1-3/+11
Some files installed by clang are not relevant for general users and we'd like to be able to install them to a different location. This adds a new --with-internal-prefix configure option and a corresponding PROJ_internal_prefix makefile variable, which defaults to the standard prefix. A tool makefile can specify that it should be installed to this internal prefix by defining INTERNAL_TOOL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145234 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-14build/Make: Switch over to using llvm-config-2 for dependencies one more ↵Daniel Dunbar1-1/+5
(hopefully last) time, now that it also builds as a build tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144535 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-12build/Make: Define a TARGET_NATIVE_ARCH variable to be a bit more precise thanDaniel Dunbar1-1/+6
ARCH, which gets tested in many more contexts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144434 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-11cross-build/Make: Update cross build to properly forward ARCH andDaniel Dunbar1-2/+6
TARGETS_TO_BUILD variables to build tools submake, and also tweak echo command to indicate when we are compiling/etc build tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144419 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-11build/Make: Eliminate BUILD_COMPONENT variable, which is unused.Daniel Dunbar1-25/+8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144418 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-11Add an option '--enable-libcpp' that will have the compiler pass onEric Christopher1-2/+4
options to use libc++ as the default c++ library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144413 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-11build/Make: Switch back to llvm-config for now, I foolishly forgot to thinkDaniel Dunbar1-1/+1
about cross compiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144406 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10build/Make: llvm-config-2 needs to use EXEEXT, since it is an actual executableDaniel Dunbar1-1/+1
now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144335 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10build/Make: Try to switch over to llvm-config-2 again, now that I've cleaned upDaniel Dunbar1-1/+1
some more of the explicit dependencies. I'm staging things more slowly this time in case there is more unanticipated fallout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144323 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10Remove a really ancient line from the default 'make clean' rule that attemptsChris Lattner1-1/+3
to delete core files. This causes a warning in clang/lib/StaticAnalyzer on case insensitive filesystems, since it contains a "Core" directory. Since this is pointless anyway, just zap it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144317 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10Revert r144300 "llvm-config: Replace with C++ version (was llvm-config-2).",Daniel Dunbar1-6/+1
which didn't appear ready for prime time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144309 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10llvm-config: Replace with C++ version (was llvm-config-2).Daniel Dunbar1-1/+6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144300 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-10build/Make & CMake: Pass the appropriate --native-target and --enable-targetsDaniel Dunbar1-0/+2
options to llvm-build, so the all-targets etc. components are defined properly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144255 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-09build/Make: Fix some missing dependencies on the llvm-build generation step.Daniel Dunbar1-1/+7
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144197 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-04build/make: Fix the output path of the llvm-config-2 library dependency table.Daniel Dunbar1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143746 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-03build: Use right Echo variable and use Verb appropriately.Daniel Dunbar1-2/+2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143664 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-03build/Make: Integrate llvm-build into Makefiles.Daniel Dunbar1-0/+48
- Basically, we coordinate with llvm-build to create a Makefile fragment we can easily use. For now, nothing is wired in except the support to automatically regenerate this file when necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143662 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-03build/Make: Add support for INCLUDE_BUILD_DIR make variable, to specify thatDaniel Dunbar1-0/+4
component needs to include files from its ObjDir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143648 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-26Revert 142997. It doesn't work on Mac OS or the BSDs, which all use the BSDCharles Davis1-1/+1
version of the install program, which does not have the --strip-program switch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143009 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-26Search for and use the strip program and pass it to install for itEric Christopher1-1/+1
to use for stripping final executables. Patch by Simon Atanasyan! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142997 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16Makefile.rules: Let OPTIONAL_PARALLEL_DIRS accept out-of-tree absolute path.NAKAMURA Takumi1-7/+14
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142101 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-11Add -D__STDC_FORMAT_MACROS to use PRIx64.NAKAMURA Takumi1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141663 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-06Build system infrastructure for multiple tblgens.Peter Collingbourne1-38/+39
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141266 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-20More llvmc bits. Spotted by Benjamin on IRC.Eric Christopher1-38/+0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140124 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-08TableGen'erated MC lowering for simple pseudo-instructions.Jim Grosbach1-0/+5
This allows the (many) pseudo-instructions we have that map onto a single real instruction to have their expansion during MC lowering handled automatically instead of the current cumbersome manual expansion required. These sorts of pseudos are common when an instruction is used in situations that require different MachineInstr flags (isTerminator, isBranch, et. al.) than the generic instruction description has. For example, using a move to the PC to implement a branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134704 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-01Rename XXXGenSubtarget.inc to XXXGenSubtargetInfo.inc for consistency.Evan Cheng1-2/+2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134281 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-28build/Darwin: Fix epic typo fail.Daniel Dunbar1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134036 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-28Merge XXXGenRegisterNames.inc into XXXGenRegisterInfo.incEvan Cheng1-21/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134024 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-24Starting to refactor Target to separate out code that's needed to fully describeEvan Cheng1-2/+7
target machine from those that are only needed by codegen. The goal is to sink the essential target description into MC layer so we can start building MC based tools without needing to link in the entire codegen. First step is to refactor TargetRegisterInfo. This patch added a base class MCRegisterInfo which TargetRegisterInfo is derived from. Changed TableGen to separate register description from the rest of the stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133782 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-17Don't force remove config.cache on reconfiguration.NAKAMURA Takumi1-6/+0
config.cache will be used by the person who specifies '-C' to configure. config.cache's inconsistency should be responsible to him. Re-configuration would spend so much on cygming without '-C', esp. cygwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133252 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-16build/configure: Add support for --with-extra-ld-options flag (to provide extraDaniel Dunbar1-0/+4
options just to pass to ld). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133206 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Fix a ton of comment typos found by codespell. Patch byChris Lattner1-1/+1
Luis Felipe Strano Moraes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129558 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-11build: Add support for a SHOW_DIAGNOSTICS build variable.Daniel Dunbar1-8/+24
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129312 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-09LLVMCC_EMITIR_FLAG is already either -emit-llvm or ↵Chris Lattner1-10/+10
-fplugin-arg-dragonegg-emit-ir, so don't add an extra leading -. Clang doesn't accept --emit-llvm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129232 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-09make stuff work when LLVMCC_OPTION is something like installed-clang, not ↵Chris Lattner1-2/+2
just clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129229 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-09revert accidental commit.Chris Lattner1-11/+11
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129191 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-09fix a potentially serious bug in AliasSet::removeCallSite Chris Lattner1-11/+11
where we shrunk the list without updating the end iterator. By inspection, from PR9639. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129190 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-09Makefile.rules: [PR2928] "make install" may install include files along ↵NAKAMURA Takumi1-3/+20
explicit pattern, not to install CMake's building stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127325 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-08Reapply r127073(partially): Introduce $(ECHOPATH) to print DOSish path ↵NAKAMURA Takumi1-0/+18
string on MSYS bash for alternative of $(ECHO). On mingw and python/w32, lit would not be expected to understand MSYS-style path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127239 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-07Prepend LD.Flags before LDFLAGS to avoid overriding necessary paths.Eric Christopher1-4/+4
Patch by Jack Howarth. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127152 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-05Revert r127073: "Introduce $(ECHOPATH) to print DOSish path string on MSYS ↵Jakob Stoklund Olesen1-18/+0
bash for alternative of $(ECHO)." It broke the llvm-gcc-native-mingw32 buildbot, and we need all of them to be green for the 2.9 branch. Takumi, please reapply after we branch, preferably with a fix ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127107 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-05Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for ↵NAKAMURA Takumi1-0/+18
alternative of $(ECHO). On mingw and python/w32, lit would not be expected to understand MSYS-style path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127073 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-21Better OpenBSD support, patch by Amit Kulkarni. I have no way to testChris Lattner1-0/+2
that this doesn't break gold, but it seems reasonable to me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126135 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-20Do not try to descend into optional build directories if they do notStephen Wilson1-1/+3
exist. This makes the build logic symmetric for both the in tree and out of tree cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126070 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-03Factor the computation of the basename of libraries. This avoids renamingRafael Espindola1-5/+7
them on install. Before we would have LLVMgold.so on the build directory but libLLVMgold.so on the install dir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124821 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-08build: Shared libraries shouldn't used RPATH on Darwin, only main executablesDaniel Dunbar1-4/+0
should use that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121231 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-08build: Don't force -flat_namespace or '-undefined suppress' on unsuspecting ↵Daniel Dunbar1-2/+3
users of LLVM makefiles, these options really shouldn't be used on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121223 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-29Now to chant the magical incantation that will exorcise the System libraryCharles Davis1-1/+1
from LLVM forever: grep -lR "llvm/System" * | grep -v .svn | xargs sed -ie 's#llvm/System#llvm/Support#g' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120314 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-29Merge System into Support.Michael J. Spencer1-2/+2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-26unittests/JITTests: Don't use --export-dynamic but --export-all-symbols on ↵NAKAMURA Takumi1-5/+11
cygming. GNU ld/PECOFF accepts but ignores them below; --version-script --export-dynamic --rpath FIXME: autoconf should be aware of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120179 91177308-0d34-0410-b5e6-96231b3b80d8