Files
build_soong/cc
Jingwen Chen 97b8531492 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
2021-10-08 11:16:20 +00:00
..
2021-09-23 03:54:58 +00:00
2021-10-08 11:16:20 +00:00
2021-09-20 18:17:59 -07:00
2021-10-08 11:16:20 +00:00
2021-07-19 11:42:32 +09:00
2021-06-18 05:25:44 +00:00
2021-09-16 20:55:10 +00:00
2021-07-19 11:42:32 +09:00
2021-04-26 18:41:00 -07:00
2021-07-07 16:29:09 -04:00
2021-06-07 13:22:30 -07:00
2021-04-13 15:55:47 -07:00
2020-12-01 16:22:16 -08:00
2020-07-16 13:21:43 -07:00
2021-07-21 20:37:46 -07:00
2021-07-19 11:42:32 +09:00
2021-08-17 15:08:49 -07:00
2021-07-19 11:42:32 +09:00
2021-07-21 20:37:46 -07:00
2021-06-10 05:22:50 +00:00
2020-11-24 14:13:31 +09:00
2021-09-27 15:56:26 -07:00
2021-09-10 04:20:49 +00:00
2021-08-30 23:13:03 +00:00