aboutsummaryrefslogtreecommitdiff
path: root/src/copy_file.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/copy_file.zig')
-rw-r--r--src/copy_file.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy_file.zig b/src/copy_file.zig
index 57738363f..f60638f9f 100644
--- a/src/copy_file.zig
+++ b/src/copy_file.zig
@@ -21,7 +21,7 @@ pub fn copy(fd_in: os.fd_t, fd_out: os.fd_t) CopyFileError!void {
}
}
- if (std.Target.current.os.tag == .linux) {
+ if (comptime std.Target.current.os.tag == .linux) {
// Try copy_file_range first as that works at the FS level and is the
// most efficient method (if available).
var offset: u64 = 0;