about summary refs log tree commit diff
path: root/mk/rustllvm.mk
AgeCommit message (Collapse)AuthorLines
2017-02-06Delete the `mk` folderAlex Crichton-71/+0
This commit deletes the old build system located in the `mk` folder as it's now been obsoleted for two cycles and is replaced by rustbuild.
2016-08-06Merge branch 'master' into issue-30961Cameron Hart-1/+1
2016-08-03remove the ExecutionEngine bindingAriel Ben-Yehuda-1/+1
the code has no tests and will just bitrot by itself. this is a [breaking-change]
2016-07-24Pass -DLLVM_RUSTLLVM to compile against rust llvm fork.Cameron Hart-0/+6
If using system llvm don't try use modifications made in the fork.
2016-04-09Implement feature extraction from `TargetMachine`Andrea Canciani-0/+4
Add the `LLVMRustHasFeature` function to check whether a `TargetMachine` has a given feature.
2015-07-10trans: Use LLVM's writeArchive to modify archivesAlex Crichton-1/+2
We have previously always relied upon an external tool, `ar`, to modify archives that the compiler produces (staticlibs, rlibs, etc). This approach, however, has a number of downsides: * Spawning a process is relatively expensive for small compilations * Encoding arguments across process boundaries often incurs unnecessary overhead or lossiness. For example `ar` has a tough time dealing with files that have the same name in archives, and the compiler copies many files around to ensure they can be passed to `ar` in a reasonable fashion. * Most `ar` programs found do **not** have the ability to target arbitrary platforms, so this is an extra tool which needs to be found/specified when cross compiling. The LLVM project has had a tool called `llvm-ar` for quite some time now, but it wasn't available in the standard LLVM libraries (it was just a standalone program). Recently, however, in LLVM 3.7, this functionality has been moved to a library and is now accessible by consumers of LLVM via the `writeArchive` function. This commit migrates our archive bindings to no longer invoke `ar` by default but instead make a library call to LLVM to do various operations. This solves all of the downsides listed above: * Archive management is now much faster, for example creating a "hello world" staticlib is now 6x faster (50ms => 8ms). Linking dynamic libraries also recently started requiring modification of rlibs, and linking a hello world dynamic library is now 2x faster. * The compiler is now one step closer to "hassle free" cross compilation because no external tool is needed for managing archives, LLVM does the right thing! This commit does not remove support for calling a system `ar` utility currently. We will continue to maintain compatibility with LLVM 3.5 and 3.6 looking forward (so the system LLVM can be used wherever possible), and in these cases we must shell out to a system utility. All nightly builds of Rust, however, will stop needing a system `ar`.
2015-05-19mk: Fix MSVC build for rustllvm.libAlex Crichton-7/+21
This commit updates the rustllvm.mk file with the necessary flags and such to build rustllvm.lib with cl.exe instead of gcc. Some comments can be found in the commit itself.
2015-04-27mk: Remove a bunch of unused directivesAlex Crichton-2/+0
2014-12-11Add LLVM ExecutionEngine APIMurarth-1/+2
2014-02-02Remove VPATH usage in MakefilesAlex Crichton-1/+1
This is just messing up all the doc dependencies because of such similar directory names and file names. Closes #11422
2014-01-26Refactor the build system for easily adding cratesAlex Crichton-1/+2
Before this patch, if you wanted to add a crate to the build system you had to change about 100 lines across 8 separate makefiles. This is highly error prone and opaque to all but a few. This refactoring is targeted at consolidating this effort so adding a new crate adds one line in one file in a way that everyone can understand it.
2013-12-06Link rustllvm statically, and distribute a static snapshotAlex Crichton-6/+2
In order to keep up to date with changes to the libraries that `llvm-config` spits out, the dependencies to the LLVM are a dynamically generated rust file. This file is now automatically updated whenever LLVM is updated to get kept up-to-date. At the same time, this cleans out some old cruft which isn't necessary in the makefiles in terms of dependencies. Closes #10745 Closes #10744
2013-10-29support for GNU configure syntaxHeather-1/+1
2013-09-05Fixed makefile to point to the new llvm build directory.Vadim Chugunov-1/+1
2013-09-04Move the `rt` build directory under $targetAlex Crichton-1/+1
Closes #2302
2013-09-03Build rustllvm into $target/rustllvmAlex Crichton-3/+3
2013-05-29Refactor optimization pass handling.James Miller-1/+1
Refactor the optimization passes to explicitly use the passes. This commit just re-implements the same passes as were already being run. It also adds an option (behind `-Z`) to run the LLVM lint pass on the unoptimized IR.
2013-03-02mk: cleanup - lib and executable suffix handlingYoung-il Choi-1/+1
2013-02-27mk: rewrite make filesYoung-il Choi-5/+5
2013-02-21mk: Split target triples into bulid triple + host triples + target triplesBrian Anderson-2/+2
For cross compiling to targets that don't want to build a compiler
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-27rusti: Add linenoise, wrap into core::rl and add rusti REPL toolZack Corr-2/+2
Add Brian Leibig to AUTHORS.txt for REPL contributions
2012-08-31jit: Clean rustllvm code, let rustc expose __morestack instead of linking in ↵Zack Corr-2/+1
libmorestack and return _rust_main and call it from rustc
2012-08-31jit: Link in __morestack and make it resolvable by JITZack Corr-1/+2
2012-06-14Update the build system to handle dependency on header files. Closes #2547.Michael Sullivan-0/+1
2012-06-13Revert "Update the build system to handle dependency on header files. Closes ↵Michael Sullivan-2/+0
#2547." This reverts commit 31f4b63dffb49e65d3de4ecbef573e15b0f44e36.
2012-06-13Update the build system to handle dependency on header files. Closes #2547.Michael Sullivan-0/+2
2012-06-13Minor makefile cleanup.Michael Sullivan-5/+0
2012-04-09llvm: Update llvm to use new gcnoteroot infrastructurePatrick Walton-2/+1
2011-12-04Upgrade LLVM to svn revision 145779Brian Anderson-1/+10
This pulls in commits 145765 & 145766, which are required for split stacks.
2011-11-29fix makefiles, add option to ignore changes in makefilesNiko Matsakis-2/+2
2011-11-05Parameterize the LLVM build over the target triplesBrian Anderson-6/+6
2011-11-05Cleanup LLVM build rules after rebase onto x64 changesBrian Anderson-2/+1
2011-11-05LLVM build cleanupBrian Anderson-5/+6
2011-11-05Tie the LLVM build into oursBrian Anderson-2/+1
2011-11-02virtualize rustllvm construction per target tripleNiko Matsakis-16/+23
2011-10-31Stub a __morestack implementation and stack segment allocation. Untested.Patrick Walton-0/+5
2011-10-06Make rpath work on macBrian Anderson-1/+1
2011-08-11rt: Stub Rust GC metadata printer and Rust GC strategy modulesPatrick Walton-1/+2
2011-08-11Use the new C API for PassManagerBuilder.Rafael Ávila de Espíndola-1/+1
2011-07-25Remove old hack of creating a .a file with code that existed both in rustRafael Ávila de Espíndola-20/+3
and on newer versions of llvm.
2011-07-17Revert "Revert "Rename Passes2.cpp to Passes.cpp""Brian Anderson-1/+1
This reverts commit 52507f406ee0dab26681227266ddce7c8ae6d37f.
2011-07-17Revert "Rename Passes2.cpp to Passes.cpp"Brian Anderson-1/+1
This reverts commit c18127b913e25cb019087c885ad61e145f3a3df0.
2011-07-17Rename Passes2.cpp to Passes.cppBrian Anderson-1/+1
The original Passes.cpp is dead so Passes2 gets promoted
2011-07-17Remove Passes.cpp from rustllvmBrian Anderson-2/+1
Upstreamed
2011-07-17Remove Object.h from rustllvmBrian Anderson-2/+1
This file appears to be upstream now
2011-06-28More work on mingw cross build.Graydon Hoare-1/+2
2011-06-27Easy fix for using newer LLVMs: just use the MachOObjectFile.cpp they provide.Rafael Ávila de Espíndola-1/+1
2011-06-25Fixes to speed and clean up makefiles.Graydon Hoare-2/+3
2011-05-08build: Use clang to compile the runtime if availablePatrick Walton-2/+2