File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cc"
3
- version = " 1.2.40 "
3
+ version = " 1.2.41 "
4
4
authors = [
" Alex Crichton <[email protected] >" ]
5
5
license = " MIT OR Apache-2.0"
6
6
repository = " https://github.com/rust-lang/cc-rs"
Original file line number Diff line number Diff line change @@ -783,26 +783,28 @@ impl Build {
783
783
784
784
/// Set the `-shared` flag.
785
785
///
786
- /// When enabled, the compiler will produce a shared object which can
787
- /// then be linked with other objects to form an executable .
786
+ /// This will typically be ignored by the compiler when calling [`Self::compile()`] since it only
787
+ /// produces static libraries .
788
788
///
789
789
/// # Example
790
790
///
791
791
/// ```no_run
792
+ /// // This will create a library named "liblibfoo.so.a"
792
793
/// cc::Build::new()
793
794
/// .file("src/foo.c")
794
795
/// .shared_flag(true)
795
796
/// .compile("libfoo.so");
796
797
/// ```
798
+ #[ deprecated = "cc only creates static libraries, setting this does nothing" ]
797
799
pub fn shared_flag ( & mut self , shared_flag : bool ) -> & mut Build {
798
800
self . shared_flag = Some ( shared_flag) ;
799
801
self
800
802
}
801
803
802
804
/// Set the `-static` flag.
803
805
///
804
- /// When enabled on systems that support dynamic linking, this prevents
805
- /// linking with the shared libraries.
806
+ /// This will typically be ignored by the compiler when calling [`Self::compile()`] since it only
807
+ /// produces static libraries.
806
808
///
807
809
/// # Example
808
810
///
@@ -813,6 +815,7 @@ impl Build {
813
815
/// .static_flag(true)
814
816
/// .compile("foo");
815
817
/// ```
818
+ #[ deprecated = "cc only creates static libraries, setting this does nothing" ]
816
819
pub fn static_flag ( & mut self , static_flag : bool ) -> & mut Build {
817
820
self . static_flag = Some ( static_flag) ;
818
821
self
You can’t perform that action at this time.
0 commit comments