sandboxed-api/.bazelrc
Christian Blichmann 2a9320dbac Update/simplify linker flags for testcases
- Bazel: Use "incompatible" flag to fix fully static linking. The flag will
  become the default in Bazel 4.0.
- Bazel: Deduplicate features into `FULLY_STATIC_FEATURES` variable
- CMake: Remove the testcase properties. `sapi::base` already sets
  `POSITION_INDEPENDENT_CODE`. Note that `-pie` is incompatible with `-static`
  and `-static-pie` requires GCC 8 and GLIBC 2.27.

PiperOrigin-RevId: 346952478
Change-Id: I7a317c90a3bec9691b13df1a00e3fddf4481df4d
2020-12-11 01:12:05 -08:00

7 lines
242 B
Plaintext

# Build in C++17 mode without a custom CROSSTOOL
build --cxxopt=-std=c++17
# TODO(https://github.com/bazelbuild/bazel/issues/8672): Remove this workaround
# This will become the default in Bazel 4.0
build --incompatible_linkopts_to_linklibs