Motiejus Jakštys
7b0de33070
work-around res_search on older glibcs
...
`res_search` became a proper symbol only in glibc 2.34. Until that it
was re-defined in headers, hitting the (in-)famous
https://github.com/ziglang/zig/issues/9485
glibc 2.34+:
resolv/resolv.h:int res_search (const char *, int, int, unsigned char *, int)
Old glibc:
resolv/resolv.h:#define res_search __res_search
Also, remove the toplevel includes, as they should never be included in
the first place: the headers are included explicitly when needed.
2023-01-18 15:45:47 +02:00
Motiejus Jakštys
70ef4dd54e
remove zig_include_root
...
It is now consistent across all 5 platforms we support:
$ for x in *324*.tar.xz; do tar -tf $x | grep libc/ | head -5; done
zig-0.11.0-dev.324+f61c5f3f5/lib/libc/
zig-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/
zig-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/
zig-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/ntddstor-uuid.c
zig-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/bth-uuid.c
zig-linux-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/
zig-linux-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/
zig-linux-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/
zig-linux-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/ntddstor-uuid.c
zig-linux-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/bth-uuid.c
zig-linux-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/
zig-linux-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/
zig-linux-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/
zig-linux-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/ntddstor-uuid.c
zig-linux-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/bth-uuid.c
zig-macos-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/
zig-macos-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/
zig-macos-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/
zig-macos-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/ntddstor-uuid.c
zig-macos-aarch64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/bth-uuid.c
zig-macos-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/
zig-macos-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/
zig-macos-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/
zig-macos-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/ntddstor-uuid.c
zig-macos-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/mingw/libsrc/bth-uuid.c
$ for x in *324*.zip; do unzip -l $x | grep libc/ | head -5; done
0 2022-11-28 19:26 zig-windows-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/
0 2022-11-28 19:26 zig-windows-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/darwin/
301018 2022-11-28 19:26 zig-windows-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/darwin/libSystem.11.tbd
309693 2022-11-28 19:26 zig-windows-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/darwin/libSystem.12.tbd
326079 2022-11-28 19:26 zig-windows-x86_64-0.11.0-dev.324+f61c5f3f5/lib/libc/darwin/libSystem.13.tbd
2022-12-07 12:17:44 +02:00
Motiejus Jakštys
88e7e47ed2
zig_include_root: fixes
...
- do not pass where it's unnecessary
- remove trailing slash. That conflicts with ziglang/zig/pull/13596
2022-11-21 06:08:22 +02:00
Motiejus Jakštys
08b02cb7d2
rename absolute_path to zig_path
...
this is not an absolute path.
2022-09-27 15:37:28 +03:00
Ken Micklas
ab59c18d60
WIP: use relative paths for tools
2022-09-27 10:14:59 +03:00
Fabian Hahn
4a6eef7945
added Windows host support
2022-06-02 05:27:22 +03:00
laurynasl
4d65b80903
Add libc constraint and libc aware toolchains
...
- Also get rid of @bazel_skylib dependency
2022-04-14 14:29:06 +00:00
laurynasl
723e6f051d
Move toolchainss under @zig_sdk//platform:
2022-04-07 12:43:34 +03:00
Motiejus Jakštys
005f87a26d
more robust toolchain selection
2021-08-05 09:47:34 +03:00
Motiejus Jakštys
13cba6c244
rework toolchain registration
...
- support specifying the glibc version.
- support picking the default of musl or glibc.
- create both zig and go conventions for `--extra_toolchains`.
2021-08-04 15:04:14 +03:00
Motiejus Jakštys
5bf03915be
implement fcntl64 hack
...
glibc overrides fcntl with a macro to fcntl64; implement some trickery
to bring back fcntl on older toolchain.
2021-07-28 23:44:06 +03:00
Motiejus Jakštys
44da7f7f46
remove obsolete comments and code
2021-07-28 19:13:40 +03:00
Motiejus Jakštys
1fa90818cb
quote strings properly
2021-07-12 09:45:23 +03:00
Motiejus Jakštys
be168480a7
downgrade bazel to 3.7.0
...
that's our target for now.
2021-06-28 12:52:20 +03:00
Motiejus Jakštys
ea14601308
fix workspace name #2
2021-06-11 09:03:47 +03:00
Motiejus Jakštys
dbff5afa75
buildifier
2021-06-10 13:12:54 +03:00
Motiejus Jakštys
100c1e3727
remove `.2.19` from toolchain params
...
Only the default toolchain can be exposed.
2021-06-10 13:02:35 +03:00
Motiejus Jakštys
1df5b4004d
move BUILD template to a file
2021-06-10 09:42:26 +03:00