1
Fork 0
Commit Graph

30 Commits

Author SHA1 Message Date
Motiejus Jakštys 9ce21b5276 [zig ld] --gc-sections workaround + tests
`zig cc` emits `--gc-sections` for the linker, which is incompatbile
with what CGo thinks about linking.

This commit adds a workaround: it will add `--no-gc-sections` to the
linking step if the command is not specified (falling back to the
default behavior of gcc/clang).

Related: https://github.com/golang/go/issues/52690
2022-05-05 13:36:58 +03:00
Motiejus Jakštys 418b589ed2 example transitions only change platforms, leave toolchains for WORKSPACE 2022-04-18 12:40:17 +03:00
Motiejus Jakštys 0c02a827ae README prose, the way I understand it 2022-04-18 11:42:13 +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 7a81e2a129 Restructure tests to all run in bazel
- add rules to run tests for a specific platform
- use downloaded buildifier
- move lint to a script
- rename ci tasks
- stop running under qemu-aarch64-static as it doesn't do anything
2022-04-14 10:47:02 +00:00
Motiejus Jakštys 8d110a392a fcntl64 test
Refs https://github.com/ziglang/zig/issues/9485
2022-02-05 16:28:20 +02:00
Motiejus Jakštys ebbf499208 move golang tests to its own directory
this prepares for more test binaries.
2022-02-03 15:24:26 +02:00
Motiejus Jakštys 5631c7e2b6 build everything under //test/... and remove duplicate test binaries 2022-02-03 14:58:42 +02:00
Motiejus Jakštys 1cd04478b7 rename/fix the package 2022-01-28 15:57:22 +02:00
Motiejus Jakštys f19927ac17 remove sqlite from dependencies
racy `zig cc` is no longer a thing. Good time to make tests faster.
2022-01-28 15:50:33 +02:00
Motiejus Jakštys 3d8cc9c38c add unit test 2022-01-28 15:49:24 +02:00
Motiejus Jakštys 47f1b10370 add unit test 2022-01-28 14:40:03 +02:00
Motiejus Jakštys 19c7d77ac0 [test] remove DataDog/zstd
only one test cgo dependency is quite enough
2021-11-07 12:39:34 +02:00
Motiejus Jakštys f50493ca72 move go_binary_override to rules_go
also, do not ignore the user's gc_linkopts.
2021-11-07 12:39:34 +02:00
Mantas Jonaitis 523943bd35 2021-11-05 19:29:07 +02:00
Motiejus Jakštys 37953e9cd3 add some C dependencies
this stresses the toolchain more.
2021-07-21 15:02:04 +03:00
Motiejus Jakštys a3606b7404 register only gnu toolchain by default
musl can be specified with --extra_toolchains.
2021-06-19 16:32:07 +03:00
Motiejus Jakštys 18b43049c1 remove redundant target 2021-06-16 14:44:57 +03:00
Motiejus Jakštys 39535dadc5 add macos support
+ buildifier
2021-06-16 12:44:16 +03:00
Motiejus Jakštys 61491dac5e rename libc name; comment out default toolchain 2021-06-10 16:12:50 +03:00
Motiejus Jakštys 4bd7b30f65 change @com_github_ziglang_zig to @zig_sdk 2021-06-10 09:34:59 +03:00
Motiejus Jakštys b826ad9439 downgrade glibc to 2.19 and update README 2021-06-07 23:17:19 +03:00
Motiejus Jakštys 6ed6563a37 musl-static 2021-06-07 23:00:32 +03:00
Motiejus Jakštys c449706594 split go and c examples 2021-06-07 22:56:15 +03:00
Motiejus Jakštys d3af35cbc6 gazelle works now 2021-06-07 22:52:29 +03:00
Motiejus Jakštys 5860621c80 add cgo example; fix zig url 2021-06-07 22:33:34 +03:00
Motiejus Jakštys c96a2f4260 rename files 2021-06-07 22:22:18 +03:00
Motiejus Jakštys e590d4f567 point to correct paths; upgrade zig to 0.8 2021-06-07 22:10:33 +03:00
Motiejus Jakštys d461cf1dcc remove nonessential stuff
- rules_docker
- boost
... and their deps.
2021-06-03 18:53:09 +03:00
Adam Bouhenguel 2195fb6941 Initial commit with minimal examples 2021-04-09 15:05:01 -07:00