1
Fork 0
Commit Graph

337 Commits

Author SHA1 Message Date
Jeremy Volkman a0511ca5ee Pass "-Wl,-undefined=dynamic_lookup" for dynamic libraries on darwin.
This linker flag causes undefined symbols to be ignored, which is the
default behavior on linux but not macos. This is required when building
shared libraries to use as e.g. Python modules. This also matches what
Bazel's built-in macos cc toolchain does.
2022-06-01 11:49:13 +03:00
Jeremy Volkman 921fda9260 Adds dynamic_library_linkopts to zig_cc_toolchain_config
If specified, the flags in dynamic_library_linkopts are included in
cpp_link_dynamic_library and cpp_link_nodeps_dynamic_library actions.
2022-06-01 11:49:13 +03:00
Motiejus Jakštys f6440f8cf0 README: clarify video link 2022-05-25 15:20:12 +03:00
Motiejus Jakštys 1f8b1e4dd8 README: publicity section 2022-05-25 15:18:28 +03:00
Motiejus Jakštys 583ef5e55b README: update `darwin_amd64` description 2022-05-18 10:45:22 +03:00
Motiejus Jakštys 8fec0e3441 zig sdk: download from zig upstream as well as jakstys.lt
Now that the toolchain supports multiple mirrors, we can have more
robust defaults: try ziglang.org first, then dl.jakstys.lt when that one
removes the build we rely on.

This will make builds less prone to inevitable failures of my home
server.
2022-05-18 10:42:51 +03:00
Motiejus Jakštys 7d5fb880c8 Update release notes for v0.7.2 2022-05-17 15:05:50 +03:00
Motiejus Jakštys 59057c06f3 upgrade rules_go and bazel_gazelle 2022-05-17 14:43:40 +03:00
Motiejus Jakštys dd8665fc7f bump go to 1.18.2 2022-05-17 14:42:37 +03:00
Motiejus Jakštys 0044260206 upgrade zig to 0.10.0-dev.2252+a4369918b 2022-05-17 14:41:02 +03:00
Motiejus Jakštys 4fa5eff207 [linux-aarch64] fix top-level include path 2022-05-06 10:46:32 +03:00
Motiejus Jakštys 450a8486e2 [.envrc] fix linux-aarch64 buildifier hash 2022-05-06 09:59:52 +03:00
Motiejus Jakštys d0c50b9544 [README] clarify binfmt_misc configuration 2022-05-06 09:50:53 +03:00
Motiejus Jakštys e40d48ab6e [readme] fix an internal link 2022-05-06 09:47:59 +03:00
Motiejus Jakštys 4dc947c012 Update release notes for v0.7.1 2022-05-05 15:23:39 +03:00
Motiejus Jakštys 94d5864cb7 move `--no-gc-sections` hack to the toolchain definition
Thanks laurynasl for the tip.
2022-05-05 14:36:36 +03:00
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 4cc8a7b551 bump go to 1.18.1 2022-04-26 05:06:59 +03:00
Motiejus Jakštys b48e1a62ee [doc] add binfmt_misc 2022-04-21 08:49:28 +03:00
Motiejus Jakštys 0e62918e88 README updates
- more robust transient docker environment
- clarify platform vs subset
2022-04-21 08:47:29 +03:00
Motiejus Jakštys d4f40a19fb fix ci/release
by adding a stub commit there
2022-04-20 14:45:48 +03:00
Motiejus Jakštys 160de46269 Update release notes for v0.7.0 2022-04-20 12:37:27 +03:00
Motiejus Jakštys c2c6edd11c Merge branch 'laurynasl_libc' 2022-04-20 12:24:05 +03:00
Motiejus Jakštys cca3c49c0b [ci] install sponge 2022-04-18 13:12:08 +03:00
Motiejus Jakštys d2af022174 shellcheck 2022-04-18 12:55:53 +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 486a26a196 [release] add to CI 2022-04-18 12:37:12 +03:00
Motiejus Jakštys a53170cf82 ci/list* and ci/test: simple style improvements 2022-04-18 11:58:43 +03:00
Motiejus Jakštys efca6e6428 remove support for glibc autodetection; this is a hermetic toolchain 2022-04-18 11:45:09 +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 557e75efda avoid including a phony commit to relnotes 2022-04-09 00:20:55 +03:00
Motiejus Jakštys 8cc0979847 Update release notes for v0.6.1 2022-04-09 00:09:17 +03:00
laurynasl 68b152067c Fix register toolchain 2022-04-09 00:09:04 +03:00
Motiejus Jakštys 6a6af239a5 Update release notes for v0.6.0 2022-04-07 14:39:47 +03:00
Motiejus Jakštys 313f16b020 [release notes] committer name -> author name 2022-04-07 14:39:31 +03:00
Motiejus Jakštys 43cb9856ea remove note about 'next' branch
will not make it special.
2022-04-07 14:39:22 +03:00
Motiejus Jakštys 56daeaf6c0 Merge branch 'next' 2022-04-07 14:37:08 +03:00
laurynasl 64be98b830 Hide toolchain internals 2022-04-07 11:23:40 +00:00
Motiejus Jakštys 6ded50ad67 buildifier 2022-04-07 13:21:44 +03:00
Motiejus Jakštys 9015e381fd update .build.yml for correct toolchain/platform paths 2022-04-07 12:56:32 +03:00
Motiejus Jakštys 4574ea0c3a add a note about next branch 2022-04-07 12:50:45 +03:00
laurynasl eedfc3312e Move toolchain definitions to toolchains/ 2022-04-07 12:43:34 +03:00
laurynasl 723e6f051d Move toolchainss under @zig_sdk//platform: 2022-04-07 12:43:34 +03:00
laurynasl d1b0dddf8c Move declare_platforms() to platform/ 2022-04-07 12:43:34 +03:00
laurynasl dd76e0b76f move platforms under @zig_cc//platform: 2022-04-07 12:43:34 +03:00
Motiejus Jakštys 22762ccc97 buildifier 2022-03-26 16:05:25 +02:00
Ken Micklas 843d97621f Pin Go SDK to 1.18 for reproducibility 2022-03-26 15:56:11 +02:00
Ken Micklas ccb68098e6 Use upstream read_user_netrc from Bazel 5.1 2022-03-26 15:56:11 +02:00