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