# SPDX-FileCopyrightText: 2023 The P4 Language Consortium
#
# SPDX-License-Identifier: Apache-2.0

# Enable Bzlmod.
common --enable_bzlmod
common --noenable_workspace

# Use C++20.
build --cxxopt=-std=c++20
build --host_cxxopt=-std=c++20

# Force the use of Clang for all builds.
build --action_env=CC=clang
build --action_env=CXX=clang++

# macOS: use Command Line Tools clang (avoids requiring a full Xcode install)
# and raise the deployment target to 10.15, which is the minimum for
# std::filesystem support in libc++.
build --repo_env=CC=/usr/bin/clang
build --macos_minimum_os=10.15
