@@ -187,9 +187,6 @@ force_undefined_symbols: std.StringHashMap(void),
187187/// Overrides the default stack size
188188stack_size : ? u64 = null ,
189189
190- /// Deprecated; prefer using `lto`.
191- want_lto : ? bool = null ,
192-
193190use_llvm : ? bool ,
194191use_lld : ? bool ,
195192use_new_linker : ? bool ,
@@ -539,7 +536,7 @@ pub fn installHeadersDirectory(
539536/// When a module links with this artifact, all headers marked for installation are added to that
540537/// module's include search path.
541538pub fn installConfigHeader (cs : * Compile , config_header : * Step.ConfigHeader ) void {
542- cs .installHeader (config_header .getOutput (), config_header .include_path );
539+ cs .installHeader (config_header .getOutputFile (), config_header .include_path );
543540}
544541
545542/// Forwards all headers marked for installation from `lib` to this artifact.
@@ -682,18 +679,6 @@ pub fn producesImplib(compile: *Compile) bool {
682679 return compile .isDll ();
683680}
684681
685- /// Deprecated; use `compile.root_module.link_libc = true` instead.
686- /// To be removed after 0.15.0 is tagged.
687- pub fn linkLibC (compile : * Compile ) void {
688- compile .root_module .link_libc = true ;
689- }
690-
691- /// Deprecated; use `compile.root_module.link_libcpp = true` instead.
692- /// To be removed after 0.15.0 is tagged.
693- pub fn linkLibCpp (compile : * Compile ) void {
694- compile .root_module .link_libcpp = true ;
695- }
696-
697682const PkgConfigResult = struct {
698683 cflags : []const []const u8 ,
699684 libs : []const []const u8 ,
@@ -807,46 +792,6 @@ fn runPkgConfig(compile: *Compile, lib_name: []const u8) !PkgConfigResult {
807792 };
808793}
809794
810- /// Deprecated; use `compile.root_module.linkSystemLibrary(name, .{})` instead.
811- /// To be removed after 0.15.0 is tagged.
812- pub fn linkSystemLibrary (compile : * Compile , name : []const u8 ) void {
813- return compile .root_module .linkSystemLibrary (name , .{});
814- }
815-
816- /// Deprecated; use `compile.root_module.linkSystemLibrary(name, options)` instead.
817- /// To be removed after 0.15.0 is tagged.
818- pub fn linkSystemLibrary2 (
819- compile : * Compile ,
820- name : []const u8 ,
821- options : Module.LinkSystemLibraryOptions ,
822- ) void {
823- return compile .root_module .linkSystemLibrary (name , options );
824- }
825-
826- /// Deprecated; use `c.root_module.linkFramework(name, .{})` instead.
827- /// To be removed after 0.15.0 is tagged.
828- pub fn linkFramework (c : * Compile , name : []const u8 ) void {
829- c .root_module .linkFramework (name , .{});
830- }
831-
832- /// Deprecated; use `compile.root_module.addCSourceFiles(options)` instead.
833- /// To be removed after 0.15.0 is tagged.
834- pub fn addCSourceFiles (compile : * Compile , options : Module.AddCSourceFilesOptions ) void {
835- compile .root_module .addCSourceFiles (options );
836- }
837-
838- /// Deprecated; use `compile.root_module.addCSourceFile(source)` instead.
839- /// To be removed after 0.15.0 is tagged.
840- pub fn addCSourceFile (compile : * Compile , source : Module.CSourceFile ) void {
841- compile .root_module .addCSourceFile (source );
842- }
843-
844- /// Deprecated; use `compile.root_module.addWin32ResourceFile(source)` instead.
845- /// To be removed after 0.15.0 is tagged.
846- pub fn addWin32ResourceFile (compile : * Compile , source : Module.RcSourceFile ) void {
847- compile .root_module .addWin32ResourceFile (source );
848- }
849-
850795pub fn setVerboseLink (compile : * Compile , value : bool ) void {
851796 compile .verbose_link = value ;
852797}
@@ -928,84 +873,6 @@ pub fn getEmittedLlvmBc(compile: *Compile) LazyPath {
928873 return compile .getEmittedFileGeneric (& compile .generated_llvm_bc );
929874}
930875
931- /// Deprecated; use `compile.root_module.addAssemblyFile(source)` instead.
932- /// To be removed after 0.15.0 is tagged.
933- pub fn addAssemblyFile (compile : * Compile , source : LazyPath ) void {
934- compile .root_module .addAssemblyFile (source );
935- }
936-
937- /// Deprecated; use `compile.root_module.addObjectFile(source)` instead.
938- /// To be removed after 0.15.0 is tagged.
939- pub fn addObjectFile (compile : * Compile , source : LazyPath ) void {
940- compile .root_module .addObjectFile (source );
941- }
942-
943- /// Deprecated; use `compile.root_module.addObject(object)` instead.
944- /// To be removed after 0.15.0 is tagged.
945- pub fn addObject (compile : * Compile , object : * Compile ) void {
946- compile .root_module .addObject (object );
947- }
948-
949- /// Deprecated; use `compile.root_module.linkLibrary(library)` instead.
950- /// To be removed after 0.15.0 is tagged.
951- pub fn linkLibrary (compile : * Compile , library : * Compile ) void {
952- compile .root_module .linkLibrary (library );
953- }
954-
955- /// Deprecated; use `compile.root_module.addAfterIncludePath(lazy_path)` instead.
956- /// To be removed after 0.15.0 is tagged.
957- pub fn addAfterIncludePath (compile : * Compile , lazy_path : LazyPath ) void {
958- compile .root_module .addAfterIncludePath (lazy_path );
959- }
960-
961- /// Deprecated; use `compile.root_module.addSystemIncludePath(lazy_path)` instead.
962- /// To be removed after 0.15.0 is tagged.
963- pub fn addSystemIncludePath (compile : * Compile , lazy_path : LazyPath ) void {
964- compile .root_module .addSystemIncludePath (lazy_path );
965- }
966-
967- /// Deprecated; use `compile.root_module.addIncludePath(lazy_path)` instead.
968- /// To be removed after 0.15.0 is tagged.
969- pub fn addIncludePath (compile : * Compile , lazy_path : LazyPath ) void {
970- compile .root_module .addIncludePath (lazy_path );
971- }
972-
973- /// Deprecated; use `compile.root_module.addConfigHeader(config_header)` instead.
974- /// To be removed after 0.15.0 is tagged.
975- pub fn addConfigHeader (compile : * Compile , config_header : * Step.ConfigHeader ) void {
976- compile .root_module .addConfigHeader (config_header );
977- }
978-
979- /// Deprecated; use `compile.root_module.addEmbedPath(lazy_path)` instead.
980- /// To be removed after 0.15.0 is tagged.
981- pub fn addEmbedPath (compile : * Compile , lazy_path : LazyPath ) void {
982- compile .root_module .addEmbedPath (lazy_path );
983- }
984-
985- /// Deprecated; use `compile.root_module.addLibraryPath(directory_path)` instead.
986- /// To be removed after 0.15.0 is tagged.
987- pub fn addLibraryPath (compile : * Compile , directory_path : LazyPath ) void {
988- compile .root_module .addLibraryPath (directory_path );
989- }
990-
991- /// Deprecated; use `compile.root_module.addRPath(directory_path)` instead.
992- /// To be removed after 0.15.0 is tagged.
993- pub fn addRPath (compile : * Compile , directory_path : LazyPath ) void {
994- compile .root_module .addRPath (directory_path );
995- }
996-
997- /// Deprecated; use `compile.root_module.addSystemFrameworkPath(directory_path)` instead.
998- /// To be removed after 0.15.0 is tagged.
999- pub fn addSystemFrameworkPath (compile : * Compile , directory_path : LazyPath ) void {
1000- compile .root_module .addSystemFrameworkPath (directory_path );
1001- }
1002-
1003- /// Deprecated; use `compile.root_module.addFrameworkPath(directory_path)` instead.
1004- /// To be removed after 0.15.0 is tagged.
1005- pub fn addFrameworkPath (compile : * Compile , directory_path : LazyPath ) void {
1006- compile .root_module .addFrameworkPath (directory_path );
1007- }
1008-
1009876pub fn setExecCmd (compile : * Compile , args : []const ? []const u8 ) void {
1010877 const b = compile .step .owner ;
1011878 assert (compile .kind == .@"test" );
@@ -1758,7 +1625,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
17581625 .thin = > "-flto=thin" ,
17591626 .none = > "-fno-lto" ,
17601627 });
1761- } else try addFlag ( & zig_args , "lto" , compile . want_lto );
1628+ }
17621629
17631630 try addFlag (& zig_args , "sanitize-coverage-trace-pc-guard" , compile .sanitize_coverage_trace_pc_guard );
17641631
0 commit comments