diff options
author | 2021-10-15 19:44:53 -0700 | |
---|---|---|
committer | 2021-10-15 19:44:53 -0700 | |
commit | 10696680ff9012f7ca07ae2c1de5ed710647b4f9 (patch) | |
tree | 1732ddd3dd2a7605da8ff5f181156e9e734aaa99 /src/copy_file.zig | |
parent | 7e159cb5cdfc288c1aab7b0f810f5b54438b9f19 (diff) | |
download | bun-10696680ff9012f7ca07ae2c1de5ed710647b4f9.tar.gz bun-10696680ff9012f7ca07ae2c1de5ed710647b4f9.tar.zst bun-10696680ff9012f7ca07ae2c1de5ed710647b4f9.zip |
Polish
Diffstat (limited to 'src/copy_file.zig')
-rw-r--r-- | src/copy_file.zig | 2 |
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; |