Lines Matching +full:build +full:- +full:std
2 # Use of this source code is governed by a BSD-style license that can be
5 # Provides per-crate and overall configuration options to gnrt.
15 # TODO(https://github.com/rust-lang/cargo/issues/10801): remove workaround once
17 remove_crates = ['allocator-api2']
19 [all-crates]
20 # std crates should have metadata applied to them. This would avoid any symbol
21 # conflicts between std dependencies and third_party/rust crates.
24 # nor can we delete and rebuild the sysroot on every build.
31 # force-unstable-if-unmarked prevents normal crates from inadvertently using
32 # symbols from std-internal dependencies in the sysroot. This is normally passed
33 # during an x.py build, but we have to do it manually.
34 rustflags = ['-Zforce-unstable-if-unmarked']
36 # Override the GN output dir. We direct std targets to output directly to the
38 # //build/rust/std/BUILD.gn
41 # This target provides setup needed for building std.
43 '//build/rust/std:std_build_deps',
44 '//build/rust/std:profiler_builtins_group',
48 features = ['weak-intrinsics']
50 remove_library_configs = ['//build/config/coverage:default_coverage']
51 extra_gn_deps_to_ignore = ['//build/rust/std:profiler_builtins_group']
55 remove_library_configs = ['//build/config/coverage:default_coverage']
56 extra_gn_deps_to_ignore = ['//build/rust/std:profiler_builtins_group']
57 add_library_configs = ['//build/rust:panic_immediate_abort']
58 extra_src_roots = ['../../portable-simd/crates/core_simd', '../../stdarch/crates/core_arch']
65 # TODO(https://github.com/rust-lang/cargo/issues/10801): remove workaround once
67 remove_deps = ['allocator-api2']
71 # library ourselves in //build/config/win:dynamic_crt and
72 # //build/config/win:static_crt because Rustc does not allow us to specify
73 # using the debug CRT: https://github.com/rust-lang/rust/issues/39016
74 rustflags = ['-Zlink-directives=false']
76 # This target is #[no_core] when included by std, which is incompatible with
78 remove_library_configs = ['//build/config/coverage:default_coverage']
79 extra_gn_deps_to_ignore = ['//build/rust/std:profiler_builtins_group']
82 # The build script is used to compile a profiler-rt library, but we get
85 # profiler_builtins cannot depend on itself, which it would if build with
87 remove_library_configs = ['//build/config/coverage:default_coverage']
88 extra_gn_deps_to_ignore = ['//build/rust/std:profiler_builtins_group']
90 [crate.rustc-std-workspace-alloc]
92 remove_library_configs = ['//build/config/coverage:default_coverage']
93 extra_gn_deps_to_ignore = ['//build/rust/std:profiler_builtins_group']
95 [crate.rustc-std-workspace-core]
97 remove_library_configs = ['//build/config/coverage:default_coverage']
98 extra_gn_deps_to_ignore = ['//build/rust/std:profiler_builtins_group']
100 [crate.std]
102 # * STD_ENV_ARCH is referenced in architecture-dependent code. Note this is the
104 # variable is set at build time in build/config/rust.gni
106 # See https://github.com/rust-lang/rust/blob/master/library/std/build.rs
108 # TODO(crbug.com/1448880): Our cargo emulation should use `cargo:rustc-env`
112 add_library_configs = ['//build/rust:panic_immediate_abort']
113 extra_src_roots = ['../../backtrace/src', '../../portable-simd/crates/std_float/src']
114 extra_input_roots = ['../primitive_docs', '../../core/src', '../../portable-simd/crates/core_simd/s…
116 # Remove this from std. It will be depended on directly when needed.
124 # test only depends on proc_macro as an internal detail of the Rust build, so
125 # it's implicitly included with std/test. However, we list the std crates and
127 # it during cross-compiles (since we will only build host proc_macro crates).
131 # The build script is used to set up the link directives which we skip below.
132 # It uses `cc` to run a compiler to do so, which we don't support in build
136 # either get that automatically by linking with clang++, or build and link the
137 # lib from //buildtools/third_party/libunsind explicitly. Disable -lfoo linker
139 rustflags = ['-Zlink-directives=false']