diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-06-18 10:27:37 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-06-20 20:58:10 +0300 |
| commit | e4225ca5f76760568c632d1f1c455e9d8759dce1 (patch) | |
| tree | b40a3d748704ab3b2cbdec34abd6a8ef38fd3f45 /lib/std/Thread.zig | |
| parent | 6de45c826c39ecd2d39deed20fd426240c496402 (diff) | |
| download | zig-e4225ca5f76760568c632d1f1c455e9d8759dce1.tar.gz zig-e4225ca5f76760568c632d1f1c455e9d8759dce1.zip | |
std: Make copy_file_range checks run at compile-time
* Avoid emitting the copy_file_range symbol at all to prevent link-time
errors.
* Fix a bug in the check logic, the has_copy_file_range_syscall was
set to the wrong value in case of ENOSYS
* If link_libc is true don't fall-back to the raw syscall approach,
there's no policy about what to do in this case but let's follow what
the other impls do.
Fixes #9146
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions
