opilarium
3933e0093b
Add tests
8 years ago
Thomas Jespersen
8c644e54e9
Config: accept Into<Option<&str>> instead of Option<&str>
Per @dtolnay's suggestion, change methods on Config that accepts Option<&str> to
accept Into<Option<&str>> to make the calls look neater.
Fixes #224
8 years ago
Alex Crichton
3ea767f12a
Skip flag_if_supported test on Windows
8 years ago
Ronny Chevalier
590a974a8a
config: add flag_if_supported
It allows one to add a flag to the compiler on the condition that the
compiler supports it.
We check if the compiler supports the flag by trying to compile a
simple executable. If there is some output on stderr we consider that
the compiler failed and the flag is not supported.
8 years ago
Luca Bruno
d5af8bfb94
config: add shared_flag and static_flag
This adds two configuration options to optionally enable or disable
the `-shared` and `-static` flags. If omitted, musl targets enable
`-static` by default.
8 years ago
Liran
8890a6f029
Explicitly set static crt
8 years ago
Alex Crichton
67aafdfd99
Fix tests
8 years ago
FaultyRAM
b906b39d00
Ran rustfmt
8 years ago
Alexander Bulaev
290d73970a
Fix build with opt-levels s/z (issue #102 )
8 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
Philipp Oppermann
74b883ec13
Add `pic` method to override default emission of `-fPIC`
9 years ago
Alex Crichton
48a6eb9a16
Fall back to copy if hard linking fails
Closes #60
9 years ago
Alex Crichton
172cf7fea0
Add the ability to configure an archiver as well
9 years ago
Alex Crichton
06a863da11
Add the option to specify a compiler
9 years ago
Alex Crichton
efbbc2b3a4
Try fixing CI on appveyor
9 years ago
Alex Crichton
80481f5d16
Add the ability to at least somewhat test weird platforms
9 years ago