• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1build --incompatible_strict_action_env
2build --sandbox_tmpfs_path=/tmp
3build --enable_platform_specific_config
4build -c opt
5
6# C/C++
7# Only relevant for tests and their dependencies. Everything that external
8# repositories can reference must build without this, e.g., by using a
9# transition.
10build:linux --cxxopt='-std=c++17'
11build:macos --cxxopt='-std=c++17'
12build:windows --cxxopt='/std:c++17'
13build --repo_env=CC=clang
14build --incompatible_enable_cc_toolchain_resolution
15# Requires a relatively modern clang.
16build:ci --features=layering_check
17
18# Java
19build --java_language_version=8
20build --tool_java_language_version=9
21
22# Windows
23# Only compiles with clang on Windows.
24build:windows --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
25build:windows --extra_execution_platforms=//:x64_windows-clang-cl
26build:windows --features=static_link_msvcrt
27# Required as PATH doubles as the shared library search path on Windows and the
28# Java agent functionality depends on system-provided shared libraries.
29test:windows --noincompatible_strict_action_env
30run:windows --noincompatible_strict_action_env
31
32# Toolchain
33# Since the toolchain is conditional on OS and architecture, set it on the particular GitHub Action.
34build:toolchain --//third_party:toolchain
35
36# CI tests (not using the toolchain to test OSS-Fuzz & local compatibility)
37build:ci --bes_results_url=https://app.buildbuddy.io/invocation/
38build:ci --bes_backend=grpcs://cloud.buildbuddy.io
39build:ci --remote_cache=grpcs://cloud.buildbuddy.io
40build:ci --remote_timeout=3600
41
42# Maven publishing (local only, requires GPG signature)
43build:maven --config=toolchain
44build:maven --stamp
45build:maven --define "maven_repo=https://oss.sonatype.org/service/local/staging/deploy/maven2"
46build:maven --java_runtime_version=localjdk_8
47