Merge pull request #8532 from avagin:bazel-disable-cgo

PiperOrigin-RevId: 510353175
This commit is contained in:
gVisor bot
2023-02-17 00:04:12 -08:00
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -21,6 +21,12 @@ build --cxxopt=-std=c++17
# Display the current git revision in the info block.
build --stamp --workspace_status_command tools/workspace_status.sh
build:race --@io_bazel_rules_go//go/config:race --@io_bazel_rules_go//go/config:pure=false
test:race --@io_bazel_rules_go//go/config:race --@io_bazel_rules_go//go/config:pure=false
build --@io_bazel_rules_go//go/config:pure
test --@io_bazel_rules_go//go/config:pure
# Set flags for x86_64.
build:x86_64 --crosstool_top=@crosstool//:toolchains
build:x86_64 --cpu=k8
+1 -1
View File
@@ -47,7 +47,7 @@ BRANCH_NAME := $(shell (git branch --show-current 2>/dev/null || \
git rev-parse --abbrev-ref HEAD 2>/dev/null) | \
xargs -n 1 basename 2>/dev/null)
BUILD_ROOTS := bazel-bin/ bazel-out/
RACE_FLAGS := --@io_bazel_rules_go//go/config:race
RACE_FLAGS := --config=race
# Bazel container configuration (see below).
USER := $(shell whoami)