File tree 3 files changed +0
-21
lines changed
examples/rust/dylib/rust-bin
3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -3018,19 +3018,6 @@ template("_fuchsia_shared_library") {
3018
3018
_link_output_dir =
3019
3019
rebase_path (get_path_info (link_output_file , " dir" ), root_build_dir )
3020
3020
3021
- # rustc doesn't support building dylibs with LTO enabled without the
3022
- # `-Zdylib-lto` flag. For now we just disable LTO on these targets.
3023
- if (defined (configs ) && defined (crate_type )) {
3024
- configs += [
3025
- " //build/config/lto" ,
3026
- " //build/config/lto:thinlto" ,
3027
- ]
3028
- configs -= [
3029
- " //build/config/lto" ,
3030
- " //build/config/lto:thinlto" ,
3031
- ]
3032
- }
3033
-
3034
3021
# Note: the manifest-related metadata is added to the builder target as
3035
3022
# some targets (e.g. drivers) depend on it directly in the builder
3036
3023
# toolchain.
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ rustc_test("rust-bin") {
21
21
" //examples/rust/dylib/rust-shared" ,
22
22
" //src/lib/fuchsia" ,
23
23
]
24
-
25
- # rustc doesn't support linking to dylibs while using LTO unless the
26
- # `-Zdylib-lto` flag is passed. For now we exclude this binary from building
27
- # with any LTO variants.
28
- exclude_toolchain_tags = [ " lto" ]
29
24
}
30
25
31
26
fuchsia_unittest_package (" rust-shared" ) {
Original file line number Diff line number Diff line change @@ -129,9 +129,6 @@ rustc_library("carnelian") {
129
129
}
130
130
131
131
configs += [ " :carnelian-performance" ]
132
-
133
- # Dynamic linking libstd is incompatible with LTO.
134
- configs -= [ " //build/config/fuchsia:dynamic_rust_standard_library" ]
135
132
}
136
133
137
134
config (" carnelian-performance" ) {
You can’t perform that action at this time.
0 commit comments