mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-03 20:45:30 +00:00
ICU-21107 Specify language standard versions C11 & C++17 also for Bazel.
This is copied (with C11 added) from: https://github.com/tensorflow/tensorflow/blob/v2.15.0/.bazelrc There were until now no versions specified at all, relying on the default (or commandline overrides) to be sufficiently recent.
This commit is contained in:
parent
078b88a11a
commit
2d65456a3b
1 changed files with 28 additions and 0 deletions
28
.bazelrc
Normal file
28
.bazelrc
Normal file
|
@ -0,0 +1,28 @@
|
|||
# © 2024 and later: Unicode, Inc. and others.
|
||||
# License & terms of use: http://www.unicode.org/copyright.html
|
||||
|
||||
# By default, build ICU4C as C11 & C++17.
|
||||
|
||||
build --enable_platform_specific_config
|
||||
|
||||
build:android --conlyopt=-std=c11
|
||||
build:android --host_conlyopt=-std=c11
|
||||
build:ios --conlyopt=-std=c11
|
||||
build:ios --host_conlyopt=-std=c11
|
||||
build:linux --conlyopt=-std=c11
|
||||
build:linux --host_conlyopt=-std=c11
|
||||
build:macos --conlyopt=-std=c11
|
||||
build:macos --host_conlyopt=-std=c11
|
||||
build:windows --conlyopt=/std:c11
|
||||
build:windows --host_conlyopt=/std:c11
|
||||
|
||||
build:android --cxxopt=-std=c++17
|
||||
build:android --host_cxxopt=-std=c++17
|
||||
build:ios --cxxopt=-std=c++17
|
||||
build:ios --host_cxxopt=-std=c++17
|
||||
build:linux --cxxopt=-std=c++17
|
||||
build:linux --host_cxxopt=-std=c++17
|
||||
build:macos --cxxopt=-std=c++17
|
||||
build:macos --host_cxxopt=-std=c++17
|
||||
build:windows --cxxopt=/std:c++17
|
||||
build:windows --host_cxxopt=/std:c++17
|
Loading…
Add table
Reference in a new issue