Search code examples
c++c++11targetbazel

How to specify -std=c++11 option in bazel BUILD file?


How to add this option into a target description section?

Thanks.


Solution

  • Add bazel build --cxxopt='-std=c++11' to .bazelrc file.