@@ -29,8 +29,8 @@ use crate::core::config::TargetSelection;
29
29
use crate :: utils:: exec:: { BootstrapCommand , command} ;
30
30
use crate :: { Build , CLang , GitRepo } ;
31
31
32
+ /// Finds archiver tool for the given target if possible.
32
33
/// FIXME(onur-ozkan): This logic should be replaced by calling into the `cc` crate.
33
- /// Determines the archiver tool to use for the given target based on the compiler.
34
34
fn cc2ar ( cc : & Path , target : TargetSelection , default_ar : PathBuf ) -> Option < PathBuf > {
35
35
if let Some ( ar) = env:: var_os ( format ! ( "AR_{}" , target. triple. replace( '-' , "_" ) ) ) {
36
36
Some ( PathBuf :: from ( ar) )
@@ -60,10 +60,6 @@ fn cc2ar(cc: &Path, target: TargetSelection, default_ar: PathBuf) -> Option<Path
60
60
}
61
61
62
62
/// Creates and configures a new [`cc::Build`] instance for the given target.
63
- ///
64
- /// This function initializes a new `cc::Build` object with a set of default options
65
- /// including optimization level, warning settings, and target/host configuration. It also
66
- /// applies static runtime configuration based on the target and build settings.
67
63
fn new_cc_build ( build : & Build , target : TargetSelection ) -> cc:: Build {
68
64
let mut cfg = cc:: Build :: new ( ) ;
69
65
cfg. cargo_metadata ( false )
@@ -302,7 +298,7 @@ pub(crate) fn ndk_compiler(compiler: Language, triple: &str, ndk: &Path) -> Path
302
298
ndk. join ( "toolchains" ) . join ( "llvm" ) . join ( "prebuilt" ) . join ( host_tag) . join ( "bin" ) . join ( compiler)
303
299
}
304
300
305
- /// An enum representing the target programming language for a native compiler.
301
+ /// Representing the target programming language for a native compiler.
306
302
///
307
303
/// This enum is used to indicate whether a particular compiler is intended for C or C++.
308
304
/// It also provides helper methods for obtaining the standard executable names for GCC and
0 commit comments