@@ -681,10 +681,12 @@ pub fn producesImplib(compile: *Compile) bool {
681
681
return compile .isDll ();
682
682
}
683
683
684
+ /// Deprecated; use `compile.root_module.link_libc = true` instead.
684
685
pub fn linkLibC (compile : * Compile ) void {
685
686
compile .root_module .link_libc = true ;
686
687
}
687
688
689
+ /// Deprecated; use `compile.root_module.link_libcpp = true` instead.
688
690
pub fn linkLibCpp (compile : * Compile ) void {
689
691
compile .root_module .link_libcpp = true ;
690
692
}
@@ -802,10 +804,12 @@ fn runPkgConfig(compile: *Compile, lib_name: []const u8) !PkgConfigResult {
802
804
};
803
805
}
804
806
807
+ /// Deprecated; use `compile.root_module.linkSystemLibrary(name, .{})` instead.
805
808
pub fn linkSystemLibrary (compile : * Compile , name : []const u8 ) void {
806
809
return compile .root_module .linkSystemLibrary (name , .{});
807
810
}
808
811
812
+ /// Deprecated; use `compile.root_module.linkSystemLibrary(name, options)` instead.
809
813
pub fn linkSystemLibrary2 (
810
814
compile : * Compile ,
811
815
name : []const u8 ,
@@ -814,22 +818,22 @@ pub fn linkSystemLibrary2(
814
818
return compile .root_module .linkSystemLibrary (name , options );
815
819
}
816
820
821
+ /// Deprecated; use `c.root_module.linkFramework(name, .{})` instead.
817
822
pub fn linkFramework (c : * Compile , name : []const u8 ) void {
818
823
c .root_module .linkFramework (name , .{});
819
824
}
820
825
821
- /// Handy when you have many C/C++ source files and want them all to have the same flags .
826
+ /// Deprecated; use `compile.root_module.addCSourceFiles(options)` instead .
822
827
pub fn addCSourceFiles (compile : * Compile , options : Module.AddCSourceFilesOptions ) void {
823
828
compile .root_module .addCSourceFiles (options );
824
829
}
825
830
831
+ /// Deprecated; use `compile.root_module.addCSourceFile(source)` instead.
826
832
pub fn addCSourceFile (compile : * Compile , source : Module.CSourceFile ) void {
827
833
compile .root_module .addCSourceFile (source );
828
834
}
829
835
830
- /// Resource files must have the extension `.rc`.
831
- /// Can be called regardless of target. The .rc file will be ignored
832
- /// if the target object format does not support embedded resources.
836
+ /// Deprecated; use `compile.root_module.addWin32ResourceFile(source)` instead.
833
837
pub fn addWin32ResourceFile (compile : * Compile , source : Module.RcSourceFile ) void {
834
838
compile .root_module .addWin32ResourceFile (source );
835
839
}
@@ -915,54 +919,67 @@ pub fn getEmittedLlvmBc(compile: *Compile) LazyPath {
915
919
return compile .getEmittedFileGeneric (& compile .generated_llvm_bc );
916
920
}
917
921
922
+ /// Deprecated; use `compile.root_module.addAssemblyFile(source)` instead.
918
923
pub fn addAssemblyFile (compile : * Compile , source : LazyPath ) void {
919
924
compile .root_module .addAssemblyFile (source );
920
925
}
921
926
927
+ /// Deprecated; use `compile.root_module.addObjectFile(source)` instead.
922
928
pub fn addObjectFile (compile : * Compile , source : LazyPath ) void {
923
929
compile .root_module .addObjectFile (source );
924
930
}
925
931
932
+ /// Deprecated; use `compile.root_module.addObject(object)` instead.
926
933
pub fn addObject (compile : * Compile , object : * Compile ) void {
927
934
compile .root_module .addObject (object );
928
935
}
929
936
937
+ /// Deprecated; use `compile.root_module.linkLibrary(library)` instead.
930
938
pub fn linkLibrary (compile : * Compile , library : * Compile ) void {
931
939
compile .root_module .linkLibrary (library );
932
940
}
933
941
942
+ /// Deprecated; use `compile.root_module.addAfterIncludePath(lazy_path)` instead.
934
943
pub fn addAfterIncludePath (compile : * Compile , lazy_path : LazyPath ) void {
935
944
compile .root_module .addAfterIncludePath (lazy_path );
936
945
}
937
946
947
+ /// Deprecated; use `compile.root_module.addSystemIncludePath(lazy_path)` instead.
938
948
pub fn addSystemIncludePath (compile : * Compile , lazy_path : LazyPath ) void {
939
949
compile .root_module .addSystemIncludePath (lazy_path );
940
950
}
941
951
952
+ /// Deprecated; use `compile.root_module.addIncludePath(lazy_path)` instead.
942
953
pub fn addIncludePath (compile : * Compile , lazy_path : LazyPath ) void {
943
954
compile .root_module .addIncludePath (lazy_path );
944
955
}
945
956
957
+ /// Deprecated; use `compile.root_module.addConfigHeader(config_header)` instead.
946
958
pub fn addConfigHeader (compile : * Compile , config_header : * Step.ConfigHeader ) void {
947
959
compile .root_module .addConfigHeader (config_header );
948
960
}
949
961
962
+ /// Deprecated; use `compile.root_module.addEmbedPath(lazy_path)` instead.
950
963
pub fn addEmbedPath (compile : * Compile , lazy_path : LazyPath ) void {
951
964
compile .root_module .addEmbedPath (lazy_path );
952
965
}
953
966
967
+ /// Deprecated; use `compile.root_module.addLibraryPath(directory_path)` instead.
954
968
pub fn addLibraryPath (compile : * Compile , directory_path : LazyPath ) void {
955
969
compile .root_module .addLibraryPath (directory_path );
956
970
}
957
971
972
+ /// Deprecated; use `compile.root_module.addRPath(directory_path)` instead.
958
973
pub fn addRPath (compile : * Compile , directory_path : LazyPath ) void {
959
974
compile .root_module .addRPath (directory_path );
960
975
}
961
976
977
+ /// Deprecated; use `compile.root_module.addSystemFrameworkPath(directory_path)` instead.
962
978
pub fn addSystemFrameworkPath (compile : * Compile , directory_path : LazyPath ) void {
963
979
compile .root_module .addSystemFrameworkPath (directory_path );
964
980
}
965
981
982
+ /// Deprecated; use `compile.root_module.addFrameworkPath(directory_path)` instead.
966
983
pub fn addFrameworkPath (compile : * Compile , directory_path : LazyPath ) void {
967
984
compile .root_module .addFrameworkPath (directory_path );
968
985
}
0 commit comments