| author | |
| committer | |
| log | f51ccf0d1f015c0f3bf8c9bebce65665e557c7de |
| tree | df9235453856d25549e8ce4bd97ca5a7bbe999f3 |
| parent | 26793453a7cf2016ae6fa7ad3d649dca150b53f5 |
causes the creation of a file instead of the directory that's meant to
be created1 files changed, 3 insertions(+), 0 deletions(-)
lib/std/build.zig+3| ... | ... | @@ -907,6 +907,9 @@ pub const Builder = struct { |
| 907 | 907 | install_dir: InstallDir, |
| 908 | 908 | dest_rel_path: []const u8, |
| 909 | 909 | ) *InstallFileStep { |
| 910 | if (dest_rel_path.len == 0) { | |
| 911 | panic("dest_rel_path must be non-empty", .{}); | |
| 912 | } | |
| 910 | 913 | const install_step = self.allocator.create(InstallFileStep) catch unreachable; |
| 911 | 914 | install_step.* = InstallFileStep.init(self, src_path, install_dir, dest_rel_path); |
| 912 | 915 | return install_step; |