google-research

Форк
0
59 строк · 2.2 Кб
1
# Bazel configuration file.
2
# ------------------------------------------------------------------------------
3
# Based on TensorFlow options in:
4
#   https://github.com/tensorflow/tensorflow/blob/master/.bazelrc
5
#
6
# Compiler options:
7
#     c++17:                  Build with C++17 options (links with libc++)
8
#     c++1z:                  Build with C++17 options (links with libc++)
9
#     c++17_gcc:              Build with C++17 options (links with stdlibc++)
10
#     c++1z_gcc:              Build with C++17 options (links with stdlibc++)
11
#
12
# Other build options:
13
#     short_logs:       Only log errors during build, skip warnings.
14
#     verbose_logs:     Show all compiler warnings during build.
15
#     libc++:           Link against libc++ instead of stdlibc++
16

17
# Suppress all warning messages.
18
build:short_logs --output_filter=DONT_MATCH_ANYTHING
19
build:verbose_logs --output_filter=
20
build --config=short_logs
21

22
# Allow builds using libc++ as a linker library. This is mostly for
23
# OSSFuzz, so we also pass in the flags from environment to clean
24
# build file.
25
build:libc++ --action_env=CC
26
build:libc++ --action_env=CXX
27
build:libc++ --action_env=CXXFLAGS=-stdlib=libc++
28
build:libc++ --action_env=PATH
29
build:libc++ --define force_libcpp=enabled
30
build:libc++ --linkopt -fuse-ld=lld
31

32
# Build with C++ 17 features.
33
build:c++17 --cxxopt=-std=c++1z
34
build:c++17 --cxxopt=-stdlib=libc++
35
build:c++1z --config=c++17
36
build:c++17_gcc --cxxopt=-std=c++1z
37
build:c++1z_gcc --config=c++17_gcc
38

39
# Enable using platform specific build settings, except when cross-compiling for
40
# mobile platforms.
41
build --enable_platform_specific_config
42
build:android --noenable_platform_specific_config
43
build:ios --noenable_platform_specific_config
44

45
# By default, build in C++ 17 mode.
46
build:android --cxxopt=-std=c++17
47
build:android --host_cxxopt=-std=c++17
48
build:ios --cxxopt=-std=c++17
49
build:ios --host_cxxopt=-std=c++17
50
build:linux --cxxopt=-std=c++17
51
build:linux --host_cxxopt=-std=c++17
52
build:macos --cxxopt=-std=c++17
53
build:macos --host_cxxopt=-std=c++17
54
build:windows --cxxopt=/std:c++17
55
build:windows --host_cxxopt=/std:c++17
56

57
# Fix for thread_identity issues in absl:: on macOS.
58
# See: https://github.com/abseil/abseil-cpp/issues/848
59
build:macos --features=-supports_dynamic_linker
60

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.