summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Jingwen Chen <jingwen@google.com> 2021-10-08 10:41:31 +0000
committer Jingwen Chen <jingwen@google.com> 2021-10-08 11:16:20 +0000
commit97b8531492fce820a61d11c2ca5ad2d5abe21eaa (patch)
treeb3348e1c20a2823a6ea2956468f5e8e9103dfe96 /sdk/java_sdk_test.go
parent800112b97f45535f2380ad3948d72fcf1fa74166 (diff)
Add bp2build support for cpp_std.
This converts cpp_std and gnu_extensions into a -std copt, if cpp_std is specified or gnu_extensions is false if cpp_std is not specified. I chose to go with this copts approach because the tradeoff is a much simpler setting than adding a new attr(s) everywhere that uses features to set the flag. This approach limits the number of user-configurable knobs (since users would then be able to set std in _both_ copts and the new attr). But it does rely on the user copt overriding the toolchain's default gnu++17 version, which can mean a `-std` flag showing up twice in the action. Fixes: b/202462232 Test: b build //system/libziparchive:libziparchive Change-Id: I81dad029059461739b91f318d662e089edb46b84
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions