commit | 5875be70dfc95305f027b8a696037b3266743422 | [log] [tgz] |
---|---|---|
author | Marcel Hlopko <hlopko@google.com> | Fri Dec 16 07:15:33 2016 +0000 |
committer | John Cater <jcater@google.com> | Fri Dec 16 15:36:27 2016 +0000 |
tree | 4d786b281c7ce44b65e35ae96cdc7be078c56a8b | |
parent | b91e35ee30afeb0dfb67f19b68fdada841cdca4c [diff] |
Only enable _FORTIFY_SOURCE for opt builds. Prevents warnings like the following under fastbuild/dbg: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/x86_64-pc-linux-gnu/bits/os_defines.h:39:0, from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/x86_64-pc-linux-gnu/bits/c++config.h:482, from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/string:38, from third_party/protobuf/3.0.0/src/google/protobuf/empty.pb.h:7, from third_party/protobuf/3.0.0/src/google/protobuf/empty.pb.cc:5: /usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) -- Change-Id: I364bb2962ef930c9079ebddcc5855a0b4ee5c138 Reviewed-on: https://cr.bazel.build/7050 PiperOrigin-RevId: 142229574 MOS_MIGRATED_REVID=142229574
{Fast, Correct} - Choose two
Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google‘s software, and thus it has been designed to handle build problems present in Google’s development environment, including:
A massive, shared code repository, in which all software is built from source. Bazel has been built for speed, using both caching and parallelism to achieve this. Bazel is critical to Google's ability to continue to scale its software development practices as the company grows.
An emphasis on automated testing and releases. Bazel has been built for correctness and reproducibility, meaning that a build performed on a continuous build machine or in a release pipeline will generate bitwise-identical outputs to those generated on a developer's machine.
Language and platform diversity. Bazel's architecture is general enough to support many different programming languages within Google, and can be used to build both client and server software targeting multiple architectures from the same underlying codebase.
Find more background about Bazel in our FAQ.