Ask Your Question
3

What are the flags specific to compilers used by Bazel?

asked 2021-05-12 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-02-15 19:00:00 +0000

pufferfish gravatar image

Bazel supports various compiler flags specific to the language being compiled. The following are some of the commonly used flags specific to compilers used by Bazel:

  1. C++ compiler flags: Bazel supports a variety of C++ compiler flags, including optimization and debug flags, language standards flags, warning flags, link flags, and more.

  2. Java compiler flags: Bazel supports a variety of Java compiler flags, including optimization and debug flags, classpath flags, annotation flags, and more.

  3. Python compiler flags: Bazel supports a variety of Python compiler flags, including optimization and debug flags, Python version flags, and others.

  4. Objective-C compiler flags: Bazel supports a variety of Objective-C compiler flags, including optimization and debug flags, framework flags, and others.

  5. Swift compiler flags: Bazel supports a variety of Swift compiler flags, including optimization and debug flags, language version flags, module flags, and more.

  6. Rust compiler flags: Bazel supports a variety of Rust compiler flags, including optimization and debug flags, target flags, and more.

These flags can be specified in the build files using the appropriate syntax for the language being compiled.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-12 11:00:00 +0000

Seen: 18 times

Last updated: Feb 15 '22