2023-03-02 23:42:35 +02:00
|
|
|
// Copyright 2023 Uber Technologies, Inc.
|
2023-04-20 03:23:25 +03:00
|
|
|
// Licensed under the MIT License
|
2023-03-02 23:42:35 +02:00
|
|
|
//
|
2022-05-05 13:36:58 +03:00
|
|
|
// Package main tests that Zig can compile race-enabled tests.
|
|
|
|
//
|
|
|
|
// As of writing, this fails:
|
|
|
|
// CGO_ENABLED=1 CC="zig cc" go test -race .
|
|
|
|
//
|
|
|
|
// More context: https://github.com/ziglang/zig/issues/11398
|
|
|
|
//
|
|
|
|
// This fails, because `zig cc` adds `--gc-sections` to the linker
|
2023-04-21 17:00:03 +03:00
|
|
|
// flag by default, which is incompatible with cgo. hermetic_cc_toolchain
|
2022-05-05 13:36:58 +03:00
|
|
|
// adds a workaround for it.
|
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {}
|