From 84b5fa6dc88108c238cc0074c564d54fbdcbcb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 8 Feb 2022 14:41:35 +0200 Subject: [PATCH] [readme] update obsolete section --- README.md | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 81ff974..ffa3f83 100644 --- a/README.md +++ b/README.md @@ -63,27 +63,17 @@ used, run: $ bazel query @zig_sdk//... | grep _toolchain$ ``` -## Specifying non-default toolchains (and not registering at all) +## Specifying non-default toolchains -You may explicitly request Bazel to use a specific toolchain, even though one -is registered using `--extra_toolchains ` flag. For example, if you -wish to compile a specific binary (or run tests) using musl on linux/amd64, you -may specify: +You may explicitly request Bazel to use a specific toolchain, even though a +different one is registered using `--extra_toolchains ` in +`.bazelrc`. For example, if you wish to compile a specific binary (or run +tests) on linux/amd64/musl, you may specify: ``` --extra_toolchains @zig_sdk//:linux_amd64_musl_toolchain ``` -As an extension to this, you may not register the toolchains at all: - -``` -zig_register_toolchains() -``` - -In that case, you will need to specify the `--extra_toolchains ` -command-line argument. Otherwise Bazel will use the default one -- the host -toolchain. - ## UBSAN and "SIGILL: Illegal Instruction" `zig cc` differs from "mainstream" compilers by [enabling UBSAN by