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
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
eedfc3312e
Move toolchain definitions to toolchains/
2022-04-07 12:43:34 +03:00