| author | |
| committer | |
| log | 13a96165405af33fa6ef43a3ce2c1d8aea846287 |
| tree | 9c817a18375e41ac5ca7ad70c357825702fb7a16 |
| parent | 16cdd1297ebfac534615eaeb8439a4e1de71837c |
These declarations are now aliases of their new APIs and marked as
deprecated via doc comments:
* std.build.Builder
* std.build
* std.Build.LibExeObjStep2 files changed, 8 insertions(+), 12 deletions(-)
lib/std/Build.zig+6-5| ... | ... | @@ -19,8 +19,12 @@ const NativeTargetInfo = std.zig.system.NativeTargetInfo; |
| 19 | 19 | const Sha256 = std.crypto.hash.sha2.Sha256; |
| 20 | 20 | const Build = @This(); |
| 21 | 21 | |
| 22 | ///// deprecated: use `CompileStep` instead. | |
| 23 | //pub const LibExeObjStep = CompileStep; | |
| 22 | /// deprecated: use `CompileStep`. | |
| 23 | pub const LibExeObjStep = CompileStep; | |
| 24 | /// deprecated: use `Build`. | |
| 25 | pub const Builder = Build; | |
| 26 | /// deprecated: use `InstallDirStep.Options` | |
| 27 | pub const InstallDirectoryOptions = InstallDirStep.Options; | |
| 24 | 28 | |
| 25 | 29 | pub const Step = @import("Build/Step.zig"); |
| 26 | 30 | pub const CheckFileStep = @import("Build/CheckFileStep.zig"); |
| ... | ... | @@ -1637,9 +1641,6 @@ pub fn constructCMacro(allocator: Allocator, name: []const u8, value: ?[]const u |
| 1637 | 1641 | return macro; |
| 1638 | 1642 | } |
| 1639 | 1643 | |
| 1640 | /// deprecated: use `InstallDirStep.Options` | |
| 1641 | pub const InstallDirectoryOptions = InstallDirStep.Options; | |
| 1642 | ||
| 1643 | 1644 | pub const VcpkgRoot = union(VcpkgRootStatus) { |
| 1644 | 1645 | unattempted: void, |
| 1645 | 1646 | not_found: void, |
lib/std/std.zig+2-7| ... | ... | @@ -96,13 +96,8 @@ pub const wasm = @import("wasm.zig"); |
| 96 | 96 | pub const zig = @import("zig.zig"); |
| 97 | 97 | pub const start = @import("start.zig"); |
| 98 | 98 | |
| 99 | ///// Deprecated. Use `std.Build` instead. | |
| 100 | ///// TODO: remove this after releasing 0.11.0 | |
| 101 | //pub const build = struct { | |
| 102 | // /// Deprecated. Use `std.Build` instead. | |
| 103 | // /// TODO: remove this after releasing 0.11.0 | |
| 104 | // pub const Builder = Build; | |
| 105 | //}; | |
| 99 | /// deprecated: use `Build`. | |
| 100 | pub const build = Build; | |
| 106 | 101 | |
| 107 | 102 | const root = @import("root"); |
| 108 | 103 | const options_override = if (@hasDecl(root, "std_options")) root.std_options else struct {}; |