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