-
Notifications
You must be signed in to change notification settings - Fork 32
/
.bazelrc
22 lines (18 loc) · 978 Bytes
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Import Shared settings
import %workspace%/../../shared.bazelrc
# Import CI settings.
import %workspace%/../../ci.bazelrc
# Try to import a local.rc file; typically, written by CI
try-import %workspace%/../../local.bazelrc
# NOTE: Puposefully not specifying --copt='-std=c99' as it is applied to
# objc_library targets that contain Objective-C++ files. Tried using
# --per_file_copt to exclude .mm files, but did not have success.
# https://stackoverflow.com/questions/40260242/how-to-set-c-standard-version-when-build-with-bazel/43388168#43388168
#
# # Required by firebase-ios-sdk, googleappmeasurement, googledatatransport, googleutilities
# build --copt='-std=c99'
# Required by firebase-ios-sdk, googleappmeasurement, googledatatransport, googleutilities, leveldb
build --cxxopt='-std=gnu++14'
# Firebase SPM support requires `-ObjC` linker option.
# https://github.com/firebase/firebase-ios-sdk/blob/master/SwiftPackageManager.md#requirements
build --linkopt='-ObjC'