Camille GILLOT
03c02be0a7
Move rustc_middle::middle::cstore to rustc_session.
2021-10-03 16:08:51 +02:00
bjorn3
5d3b8e7c1b
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
2021-09-19 13:56:58 +02:00
bjorn3
677c786109
Move add_rlib and add_native_library to cg_ssa
...
This deduplicates logic between codegen backends
2021-09-01 14:43:27 +02:00
Richard Cobbe
1248ff139d
Add first cut of functionality for #58713 : support for #[link(kind = "raw-dylib")].
...
This does not yet support #[link_name] attributes on functions, the #[link_ordinal]
attribute, #[link(kind = "raw-dylib")] on extern blocks in bin crates, or
stdcall functions on 32-bit x86.
2021-06-04 18:01:35 -07:00
bjorn3
d6b03451e6
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
2021-05-27 13:08:14 +02:00
Luqman Aden
91dc6967fe
Implement RFC 2951: Native link modifiers
...
This commit implements both the native linking modifiers infrastructure
as well as an initial attempt at the individual modifiers from the RFC.
It also introduces a feature flag for the general syntax along with
individual feature flags for each modifier.
2021-05-05 16:04:25 -07:00
bjorn3
27886cd6b6
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
2021-03-05 19:12:59 +01:00
bjorn3
d404840788
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
2020-11-27 20:48:53 +01:00
Vadim Petrochenkov
e9c34b3cf8
Collapse all uses of target.options.foo
into target.foo
...
with an eye on merging `TargetOptions` into `Target`.
`TargetOptions` as a separate structure is mostly an implementation detail of `Target` construction, all its fields logically belong to `Target` and available from `Target` through `Deref` impls.
2020-11-08 17:29:13 +03:00
bjorn3
285c7c66dc
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020-11-01
2020-11-03 11:00:04 +01:00
bjorn3
4971028775
Rustup to rustc 1.49.0-nightly (dd7fc54eb 2020-10-15)
2020-10-16 09:35:48 +02:00
bjorn3
c8699076f9
Document almost all modules
...
Fixes #1082
2020-09-23 15:13:49 +02:00
CohenArthur
4e685a512e
fmt: Run cargo fmt since it is available
2020-08-28 12:10:48 +02:00
bjorn3
8664ccc27f
Remove ArchiveConfig
2020-08-08 16:19:42 +02:00
bjorn3
240e178532
Don't panic on io errors
...
Fixes #920
2020-08-08 16:14:11 +02:00
bjorn3
748d516e0d
Use builtin ranlib instead of running external ranlib
...
This makes it possible to create rlibs for any target without installing
a toolchain for the target
Fixes #763
2020-07-15 16:28:21 +02:00
bjorn3
893497c93e
Infer the path of toolchain binaries from the linker path
2020-07-09 18:55:46 +02:00
bjorn3
eb8fd197ab
Prelude cleanup
2020-06-20 18:44:49 +02:00
bjorn3
282e3055e1
Only run ranlib when necessary
2020-06-16 11:40:21 +02:00
bjorn3
bcd357a0ae
Rustup to rustc 1.45.0-nightly (46e85b432 2020-05-24)
2020-05-25 12:41:33 +02:00
bjorn3
485e52e153
Rustup to rustc 1.45.0-nightly (7ced01a73 2020-04-30)
2020-05-01 17:51:51 +02:00
Venkata Jaswanth U
78cdfc6c92
Fixes #958 : Use session.fatal() instead of assert!
2020-04-14 21:36:28 +05:30
bjorn3
f288959c00
Limit publicness to crate where possible and remove unused imports
2020-03-27 12:14:45 +01:00
bjorn3
6b30d508f7
Fix some FIXME's and add some new FIXME's
2020-03-21 16:52:02 +01:00
bjorn3
9ab2af56aa
Rustup to rustc 1.43.0-nightly (4ad624882 2020-03-03)
2020-03-04 15:04:28 +01:00
bjorn3
a3f27a4428
Use archive_format for determining if gnu style archives should be emitted
...
Fixes #893
2020-02-14 19:12:43 +01:00
bjorn3
af4009d8c8
Rustup to rustc 1.39.0-nightly (eb48d6bde 2019-09-12)
2019-09-13 21:03:26 +02:00
bjorn3
cd0e862282
Update ar
...
Fixes #672
2019-09-01 11:17:01 +02:00
Atul Bhosale
f481a4b685
Format code using 'cargo fmt'
2019-08-31 22:58:09 +05:30
bjorn3
5b818e5e0f
Use native ar
to create archive files
...
Workaround for #672
2019-08-18 16:06:59 +02:00
bjorn3
aeecb45beb
Preserve the order files are added to archives
...
rust.metadata.bin could have been at the start of an .rlib file confusing ld
2019-04-27 17:47:15 +02:00
bjorn3
9f6a65b08b
Update comment
2019-04-24 21:08:11 +02:00
bjorn3
746e5c5142
Remove some debug println's
2019-04-24 20:57:36 +02:00
bjorn3
7ab8dda160
Fix gnu archives
2019-04-24 20:50:23 +02:00
bjorn3
e8db15f662
Fix filename length for ar files
2019-04-24 19:00:21 +02:00
bjorn3
103f2faa1a
[WIP] Try using GnuBuilder
2019-04-24 19:00:21 +02:00
bjorn3
004dc33031
Refactor archive.rs for future usage of ar::GnuBuilder
2019-04-21 14:59:05 +02:00
bjorn3
3fedac85e7
Let the ArArchiveBuilder implement cg_ssa: 🔙 :archive::ArchiveBuilder
2019-04-21 14:57:55 +02:00
bjorn3
56133d1b18
Fix release mode
2018-12-28 15:18:35 +01:00
bjorn3
640d66c777
Call linker from cg_clif
2018-11-11 11:40:31 +01:00