Alex Crichton
392fab5e7b
Support 'z' and 's' optimization levels
9 years ago
Alex Crichton
03e22a4425
Add i686 musl cross target
9 years ago
Jonathan A. Kollasch
e92cf36195
Add some NetBSD target to toolchain prefix mappings
- arm-unknown-netbsdelf-eabi
- armv6-unknown-netbsdelf-eabihf
- armv7-unknown-netbsdelf-eabihf
- i686-unknown-netbsdelf
- powerpc-unknown-netbsd
- x86_64-unknown-netbsd
9 years ago
Jonathan A. Kollasch
9390285763
sort lookup table of target to prefix mappings
9 years ago
Nipunn Koorapati
2d36a7a637
Move output directory creation out of parallel code
The create_dir_all function is not threadsafe. It
non-atomically checks if a directory exists and then
creates it. This change moves the creation to serial
code prior to the compilation loop.
9 years ago
Nipunn Koorapati
902a4a27de
Add weight to the gcc parallel tasks
Tasks are not parallelized until their total "cost" exceeds 10k.
The weight of a vector is the length of the vector. The weight of
the task is increased by 5% for each additional task added (eg
for_each), but for compilation phases, because the step itself is
quite expensive, it is worth increasing the weight to force maximum
parallelism.
9 years ago
Alex Crichton
b5b03a74b3
Move rayon to an off-by-default feature
9 years ago
Alex Crichton
acda06c063
Configure rayon according to NUM_JOBS
9 years ago
Alex Crichton
2f64343ccd
Delete existing archives before assembling them
Prevents using stale files which have since been deleted.
Closes #88
9 years ago
Alex Crichton
bac4388d4f
Reduce number of scopes a bit, don't require UTF-8
9 years ago
Nipunn Koorapati
b25a493283
Use rayon for parallel compilation
9 years ago
Michael Layzell
03d1f458a4
Emit cargo warnings when compilers emit warnings
Fixes #81
9 years ago
Peter Atashian
6b9e67c074
Fix relying on Windows 8/8.1 SDKs
9 years ago
Alex Crichton
b8e2400883
Work when input files are absolute paths
9 years ago
Alex Crichton
a9795511e5
Pass -march=i686 for i686 Linux
See:
* rust-lang/rust#34650
* rust-lang/rust#34578
9 years ago
Alex Crichton
4002359bad
Ensure the `rc` tool works
9 years ago
Alex Crichton
88885ad46c
Remove stray `pub`
Closes #86
9 years ago
Alex Crichton
db66507c72
Update MSVC probing logic
More closely matches the compiler now and should hopefully include all necessary
bits for VS 2015.
9 years ago
Alex Crichton
66341b638e
Use `Path::exists`
9 years ago
Alex Crichton
e440bfb992
Pass -m32/-march=pentium for i586 linux
9 years ago
Alex Crichton
6816f59b66
Pass /safeseh and /arch:IA32 for i586-pc-windows-msvc
9 years ago
Alex Crichton
c934cb3b36
Specially recognize ccache/distcc
These are commonly at the front of `CC`, so let's try to recognize them and work
appropriately.
Closes #75
9 years ago
Timon Van Overveldt
49e9f30dc7
Add support for ARM MUSL cross-compilers.
This paves the way for adding support for statically built Rust
binaries for ARM using MUSL libc.
The standard suffixes for ARM MUSL cross-compilers are
musleabi/musleabihf, as opposed to gnueabi/gnueabihf.
9 years ago
Alex Crichton
51a8985071
Fix a typo
9 years ago
Alex Crichton
72d49c5430
Try to set Platform for MSBuild
9 years ago
Alex Crichton
ac14e78e2d
Add MSBuild executable name
9 years ago
Alex Crichton
489e811229
Add support for finding msbuild
9 years ago
Alex Crichton
7a1bfc2a9a
Force arm-*-*-gnueabihf targets to armv6
See rust-lang/rust#31800
9 years ago
Gabriele Svelto
efbe7bf074
Add support for MIPS little-endian targets
Closes #72
9 years ago
Alex Crichton
dc3dd4aa16
Apparently safeseh is lowercase to ml.exe ...
9 years ago
Alex Crichton
64bfcf310b
Pass SAFESEH to i686 MSVC tools
9 years ago
Alex Crichton
dc55d11eb2
Drop winapi/advapi32 deps
They take a *long* time to compile on Windows and aren't necessarily worth it.
9 years ago
Peter Jin
cef0689532
Preliminary support for building CUDA C files with nvcc.
9 years ago
Fabrice Desré
83a9d4da94
Add -march=armv7-a for armv7 linux targets
9 years ago
Fabrice Desré
558ff2f8da
Add armv7-unknown-linux-gnueabihf to the list of supported targets
9 years ago
Alex Crichton
be7f717c46
Pass -m64 for powerpc64
9 years ago
Alex Crichton
b90e1a9318
Add default compilers for powerpc linux
9 years ago
Philipp Oppermann
74b883ec13
Add `pic` method to override default emission of `-fPIC`
9 years ago
Alex Crichton
2a7ae029d3
Don't include the colon in /Fo for MSVC
Closes #66
9 years ago
Alex Crichton
01e8cf50cd
Handle rumprun-netbsd for cross compiles
9 years ago
Alex Crichton
f308ef2121
Pass -static when compiling for MUSL
Currently needed for when configure scripts and such try to build executables
9 years ago
Alex Crichton
f5dd8ae454
Add .exe on the end of the windows gcc
9 years ago
Alex Crichton
26972612ef
Attempt to use a cross compiler by default
9 years ago
Alex Crichton
71d427426d
Don't print anything if cargo_metadata is false
9 years ago
Alex Crichton
4fae5536f9
Add the ability to learn about the compiler being run
9 years ago
Konstantin Welke
700e4b827b
.ok.expect() so it compiles in older versions
9 years ago
Konstantin Welke
9837db24db
don't println! on hard-link failure
9 years ago
Konstantin Welke
c3479fbc1a
If hard-linking fails, try to copy (in assemble())
9 years ago
Alex Crichton
5e8565c6c5
Inform clang when we're building for iOS
Apparently it needs an extra argument to tell it as such beyond just the
sysroot.
9 years ago
Alex Crichton
e429c775dc
Don't need -fPIC on windows-gnu
9 years ago