Skip to content

Commit

Permalink
add --incompatible_enable_cc_toolchain_resolution for macos nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Polyakovskiy committed Jan 13, 2022
1 parent 3661a87 commit 1f5aa2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func GenerateBazelrc() string {
bazelrc := "-- .bazelrc --\n"
if Context.Nixpkgs {
bazelrc += "build --host_platform=@io_tweag_rules_nixpkgs//nixpkgs/platforms:host\n"
if runtime.GOOS == "darwin" {
bazelrc += "build --incompatible_enable_cc_toolchain_resolution\n"

This comment has been minimized.

Copy link
@aherrmann

aherrmann Jan 14, 2022

Member

The top-level .bazelrc enables it everywhere except Windows at the moment. I expect we can do the same here.

}
} else if runtime.GOOS == "windows" {
bazelrc += "build --crosstool_top=@rules_haskell_ghc_windows_amd64//:cc_toolchain\n"
}
Expand Down

0 comments on commit 1f5aa2a

Please sign in to comment.