-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy path.bazelrc
More file actions
59 lines (54 loc) · 2.53 KB
/
Copy path.bazelrc
File metadata and controls
59 lines (54 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Disable Bzlmod to ensure stable legacy WORKSPACE resolution in Bazel 7
common --noenable_bzlmod
# This macro is needed in order for mlmd to build with ZetaSQL which can only
# be compiled upon c++17 or higher.
build --cxxopt="-std=c++17"
build --host_cxxopt="-std=c++17"
# Needed to avoid zetasql proto error.
build --protocopt=--experimental_allow_proto3_optional
# icu@: In create_linking_context: in call to create_linking_context(),
# parameter 'user_link_flags' is deprecated and will be removed soon.
# It may be temporarily re-enabled by setting --incompatible_require_linker_input_cc_api=false
build --incompatible_require_linker_input_cc_api=false
build:macos --apple_platform_type=macos
build:macos --repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
build:macos_arm64 --cpu=darwin_arm64
build:macos_arm64 --repo_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
build:macos_arm64 --linkopt=-Wl,-undefined,dynamic_lookup
build:macos_arm64 --host_linkopt=-Wl,-undefined,dynamic_lookup
build --conlyopt=-std=c11
build --host_conlyopt=-std=c11
build --cxxopt=-std=c++17
build --host_cxxopt=-std=c++17
build --copt=-Wno-error
build --cxxopt=-Wno-error
build --cxxopt=-fpermissive
build --conlyopt=-Wno-array-parameter
build --conlyopt=-Wno-implicit-function-declaration
build --host_copt=-Wno-error
build --host_cxxopt=-Wno-error
build --host_cxxopt=-fpermissive
build --host_conlyopt=-Wno-array-parameter
build --host_conlyopt=-Wno-implicit-function-declaration
# Linux-only linker flags (not supported on macOS)
build:linux --linkopt=-Wl,--no-as-needed
build:linux --host_linkopt=-Wl,--no-as-needed
build:macos_arm64 --copt=-Wno-error=c23-extensions
build:macos_arm64 --host_copt=-Wno-error=c23-extensions
build:macos_arm64 --copt=-Wno-c23-extensions
build:macos_arm64 --host_copt=-Wno-c23-extensions
build:macos_arm64 --action_env=CONDA_PREFIX
build:macos_arm64 --action_env=CMAKE_ICONV_FLAG="-DCMAKE_DISABLE_FIND_PACKAGE_Iconv=ON -DICONV_LIBRARIES=$CONDA_PREFIX/lib/libiconv.dylib -DICONV_INCLUDE_DIR=$CONDA_PREFIX/include"