Skip to content

Commit

Permalink
ICU-21107 Specify language standard versions C11 & C++17 also for Bazel.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
roubert committed Jan 17, 2024
1 parent 078b88a commit 2d65456
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2d65456

Please sign in to comment.